-
Notifications
You must be signed in to change notification settings - Fork 754
Include a stacktrace from execjs #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
@andygeers tests are failing, could you take a look? |
Looks like the same failing test that's been bugging us all along:
That lingering Turbolinks bug, tried to address here, #168 but locking to @andygeers could you add a test that checks for the presence of a backtrace? That would give some insight to how it's treated on the different JS runtimes (and make sure this feature keeps working!) |
Sorry, should have said first: thanks, this will be a great feature!! :D |
@rmosolgo I'm not sure if that's the kind of test you were looking for? |
Yeah, like that, but preferably without stubbing I imagine it's hard (and pointless) to test the actual content of the backtrace, but I think it would be an improvement even just to test for a bunch of newlines, for example, assert(err.message.count("\n") > 2, "The error has a multi-line backtrace") That puts a nice regression test on getting what we expect from ExecJS! |
Ok, done |
👍 😻 it'll be great to actually get some context from the prerender environment! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
thanks again! |
Include a stacktrace from execjs
The latest version of execjs now includes backtraces in Javascript errors - this makes debugging problems much easier!