Skip to content
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

special handling for NativeError instances when generating the console output #1366

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

rbri
Copy link
Collaborator

@rbri rbri commented Aug 8, 2023

Without this, the output is generated by the json serializer ending up in something like this '{"fileName":"source.js","lineNumber":426}'; means the whole message is missing. This fix brings the output closer to the output of real browsers by writing the message and the stack trace.

…e output

Without this the output is generated by the json serializer ending up in something like this '{"fileName":"source.js","lineNumber":426}' means the whole message is missing.
This fix brings the output closer to the output of real browsers by writing the message and the stack trace.
@gbrail
Copy link
Collaborator

gbrail commented Aug 11, 2023

Looks good to me. Thanks!

@gbrail gbrail merged commit 5f92432 into mozilla:master Aug 11, 2023
3 checks passed
@rbri rbri deleted the nativeerror_console_handling branch August 11, 2023 06:23
@rbri
Copy link
Collaborator Author

rbri commented Aug 11, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants