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

refactor: remove serde_json::Value from inspector #14258

Closed

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Apr 12, 2022

This commit removes the serde_json::Value intermediary from the
LocalInspectorSession. This is done as preparatory work for fixing the
error that occurs when the REPL evaluates an expression that returns a
string that contains invalid surrogates sequences.

As a side-effect to the changes to the parsing of notifications, this
fixes the panic that occurs in the REPL when logging strings
containing lone surrogates. This does not yet resolve the error when a
REPL expression returns a string that contains lone surrogates.

TODO:

  • add test for the thing that was fixed

Fixes #12226

@lucacasonato lucacasonato force-pushed the repl_console_log_panic branch 3 times, most recently from 8cd28ac to 9ee8f4e Compare May 18, 2022 19:12
This commit removes the `serde_json::Value` intermediary from the
`LocalInspectorSession`. This is done as preparatory work for fixing the
error that occurs when the REPL evaluates an expression that returns a
string that contains invalid surrogates sequences.

As a side-effect to the changes to the parsing of notifications, this
fixes the panic that occurs in the REPL when logging strings
containing lone surrogates. This does not yet resolve the error when a
REPL expression returns a string that contains lone surrogates.
@lucacasonato lucacasonato force-pushed the repl_console_log_panic branch from 9ee8f4e to 2bbf9ba Compare May 18, 2022 19:13
@stale
Copy link

stale bot commented Jul 21, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 21, 2022
@stale stale bot closed this Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logging strings with surrogate code points crashes deno
2 participants