Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap thrown errors in JS Error objects with stacks
We noticed in our usage of this package that thrown errors (eg: "Unknown frame descriptor") don't have a useful .stack property. This makes debugging harder. It seems this is expected behavior for errors created via napi at least on V8; it seems that the best way to remedy this is to recreate Error objects on the JS side?
- Loading branch information