sanctuary-js / sanctuary-def

Run-time type system for JavaScript
MIT License
294 stars 23 forks source link

WIP: Exclude internal stack frames from littering error messages #213

Open Avaq opened 6 years ago

Avaq commented 6 years ago

Opening the PR because I'm not sure when I'll get back to it, so it can serve as a start.

These changes show an approach to tackling issues like #64 and (maybe) #212 using Error.captureStacktrace from V8 to trim the stack frames that were created inside sanctuary-def to facilitate forming the Error away from the stack traces.

davidchambers commented 5 years ago

I would love to see you revive this pull request, Aldwin. :)

Avaq commented 5 years ago

I probably will. I am aware if its existence, and it's one of many things on my ever-evolving to-do list. :P I'm trying out a thing in my latest rework of Fluture, which, if successful, might make its way into a small library that we can base this PR on.