-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
NodeWorker.sendMessageToWorker fails with multi-byte code points in JSON #50516
Comments
Is there script to reproduce this without having to using the vscode debugger |
This should be pretty easily reproducible by manually interacting with the NodeWorker domain using |
This issue could be solved by updating our copies of files related to inspector protocol to the latest. I'm working on it. |
This causes programs to break when they use |
Version
21.1.0
Platform
Darwin mbp.peet.io 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64 x86_64
Subsystem
inspector
What steps will reproduce the bug?
From a user's point of view...
console.log('本機磁碟')
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior? Why is that the expected behavior?
It should log
本機磁碟
What do you see instead?
An error
Additional information
Behind the scenes, this calls
This is created by simply JSON.stringify'ing the relevant CDP call.
However, this results in
Which seems to come from here
node/tools/inspector_protocol/lib/DispatcherBase_cpp.template
Line 234 in 60e8364
This causes more 'real' issues when users have paths with multi-byte codepoints, as reported in microsoft/vscode-js-debug#1798 and microsoft/vscode-js-debug#2043
The text was updated successfully, but these errors were encountered: