mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Treat private identifier as divisible token
And also make sure private identifiers are correctly checked when synthesizing a binding pattern.
This commit is contained in:
parent
afde1821b5
commit
e751dcea43
Notes:
sideshowbarker
2024-07-17 23:18:51 +09:00
Author: https://github.com/davidot
Commit: e751dcea43
Pull-request: https://github.com/SerenityOS/serenity/pull/11088
Issue: https://github.com/SerenityOS/serenity/issues/11078
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
4 changed files with 16 additions and 0 deletions
|
@ -17,6 +17,7 @@ test("slash token resolution in lexer", () => {
|
|||
expect("+a-- / 1").toEval();
|
||||
expect("a.in / b").toEval();
|
||||
expect("a.instanceof / b").toEval();
|
||||
expect("class A { #name; d = a.#name / b; }").toEval();
|
||||
|
||||
// FIXME: Even more 'reserved' words are valid however the cases below do still need to pass.
|
||||
//expect("a.void / b").toEval();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue