ladybird/Userland/Libraries/LibJS/Tests/syntax/slash-after-block.js
Ali Mohammad Pur 0292ad33eb LibJS: Make a slash after a curly close mean not-division
There's no grammar rule that allows this.
2021-07-02 14:59:03 +02:00

6 lines
199 B
JavaScript

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