1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +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:
Ali Mohammad Pur 2021-07-02 14:46:58 +04:30 committed by Andreas Kling
parent 46ef333e9c
commit 0292ad33eb
2 changed files with 6 additions and 1 deletions

View file

@ -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();
});