-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: fix top level await with surrogate characters #39931
Conversation
This does not work for entries like |
While getting it exactly right is, of course, preferred, it's totally OK to land something that is an improvement that still leaves some edge cases unsolved. |
b14b25e
to
458a9fd
Compare
Ok, thanks! Finally I succeeded, and I don't know why I was looking for a complex solution. Just break the surrogates, so the array has the same length as the string and the surrogates will normally not be broken at the end (unless there is a bug with some indexes or acorn, but I doubt it) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Fixes: nodejs#39929 PR-URL: nodejs#39931 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Shingo Inoue <[email protected]>
Landed in addb30f |
Fixes: #39929 PR-URL: #39931 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Shingo Inoue <[email protected]>
Fixes: #39929