mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Timothy Flynn](/assets/img/avatar_default.png)
For example, "property.br\u{64}wn" should resolve to "property.brown". To support this behavior, this commit changes the Token class to hold both the evaluated identifier name and a view into the original source for the unevaluated name. There are some contexts in which identifiers are not allowed to contain Unicode escape sequences; for example, export statements of the form "export {} from foo.js" forbid escapes in the identifier "from". The test file is added to .prettierignore because prettier will replace all escaped Unicode sequences with their unescaped value.
4 lines
133 B
Plaintext
4 lines
133 B
Plaintext
Base/home/anon/Source/js
|
|
Userland/Libraries/LibJS/Tests/eval-aliasing.js
|
|
Userland/Libraries/LibJS/Tests/unicode-identifier-escape.js
|