-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
REPL panics related to invalid unicode #7953
Comments
Thanks for the heads up 👍 For reference, It's from a StringBuffer unwrap in the inspector so it only happens for local inspector message responses that contains invalid unicode. Lines 854 to 868 in 1956cb8
|
Hey, I want to try and take a look at this as it's a relatively small fix that will make it learn some rust :] |
Checked this for a bit, I think this actually isn't actually a small fix at all to do well. The "invalid" JSON is coming from the CDP itself, Chrome's JSON parser and other parsers I've found happily parse this and it seems like an issue with serde_json itself. I will however take the opportunity to brush up on rust error handling and match expressions and try to solve the issue ad-hoc :] |
Fixed in #8759 |
I found a way to trip two different Rust panic messages in the REPL:
Note that these panics only occur in the REPL, and regular Deno code is unaffected as far as I can tell.
cc @caspervonb
The text was updated successfully, but these errors were encountered: