-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Logging strings with surrogate code points crashes deno #12226
Comments
Possibly related is that tab-complete does not work for such binary strings. e.g. if I have |
Related serde_json issue: serde-rs/json#495 |
My tenative plan to fix this:
Let's see how it goes. |
All upstream changes have landed in |
Tried to reproduce this with Deno |
Logging a string with an unpaired surrogate unit (
console.log("\uDE00")
) causes Deno to crash. Similarly, when an object contains such a string, logging it also causes a crash (console.log({x:"\uDE00"})
)Note that
alert
andDeno.core.print
do not crash in this situationThe text was updated successfully, but these errors were encountered: