diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/syntax/slash-after-block.js')
-rw-r--r-- | Userland/Libraries/LibJS/Tests/syntax/slash-after-block.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/syntax/slash-after-block.js b/Userland/Libraries/LibJS/Tests/syntax/slash-after-block.js new file mode 100644 index 0000000000..67839147f9 --- /dev/null +++ b/Userland/Libraries/LibJS/Tests/syntax/slash-after-block.js @@ -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(); +}); |