mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Make a slash after a curly close mean not-division
There's no grammar rule that allows this.
This commit is contained in:
parent
46ef333e9c
commit
0292ad33eb
Notes:
sideshowbarker
2024-07-18 11:07:44 +09:00
Author: https://github.com/alimpfard
Commit: 0292ad33eb
Pull-request: https://github.com/SerenityOS/serenity/pull/8384
2 changed files with 6 additions and 1 deletions
|
@ -0,0 +1,6 @@
|
|||
test("slash token resolution in lexer", () => {
|
||||
expect(`{ blah.blah; }\n/foo/`).toEval();
|
||||
expect("``/foo/").not.toEval();
|
||||
expect("1/foo/").not.toEval();
|
||||
expect("1/foo").toEval();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue