You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The behavior of Unicode code point escape (Unicode escape with curly brackets) is different from the spec.
To Reproduce
"\u{AA}" // syntax error, should pass
"\u{{AA}}" // pass, should throw syntax error
"\u{{AA}" // freeze, should throw syntax error
"\u{AA}}" // freeze, should pass
Expected behavior
The string should be tokenized and handled correctly. The expected behavior can be found in MDN.
Some lexer tests should also be updated.
Build environment (please complete the following information):
Describe the bug
The behavior of Unicode code point escape (Unicode escape with curly brackets) is different from the spec.
To Reproduce
Expected behavior
The string should be tokenized and handled correctly. The expected behavior can be found in MDN.
Some lexer tests should also be updated.
Build environment (please complete the following information):
Windows 10
OS Build 190941.508
x86_64-pc-windows-msvc
rustc 1.49.0-nightly (91a79fb29 2020-10-07)
Additional context
It should be bugs in
string.rs
andcursor.rs
.The text was updated successfully, but these errors were encountered: