mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
52
Libraries/LibJS/Tests/syntax/slash-after-block.js
Normal file
52
Libraries/LibJS/Tests/syntax/slash-after-block.js
Normal file
|
@ -0,0 +1,52 @@
|
|||
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();
|
||||
|
||||
expect("{} /foo/").toEval();
|
||||
expect("{} /=/").toEval();
|
||||
expect("{} /=a/").toEval();
|
||||
expect("{} /* */ /=a/").toEval();
|
||||
expect("{} /* /a/ */ /=a/").toEval();
|
||||
|
||||
expect("(function () {} / 1)").toEval();
|
||||
expect("(function () {} / 1)").toEval();
|
||||
|
||||
expect("+a++ / 1").toEval();
|
||||
expect("+a-- / 1").toEval();
|
||||
expect("a.in / b").toEval();
|
||||
expect("a.instanceof / b").toEval();
|
||||
expect("class A { #name; d = a.#name / b; }").toEval();
|
||||
|
||||
expect("async / b").toEval();
|
||||
expect("a.delete / b").toEval();
|
||||
expect("delete / b/").toEval();
|
||||
expect("a.in / b").toEval();
|
||||
expect("for (a in / b/) {}").toEval();
|
||||
expect("a.instanceof / b").toEval();
|
||||
expect("a instanceof / b/").toEval();
|
||||
expect("new / b/").toEval();
|
||||
expect("null / b").toEval();
|
||||
expect("for (a of / b/) {}").toEval();
|
||||
expect("a.return / b").toEval();
|
||||
expect("function foo() { return / b/ }").toEval();
|
||||
expect("throw / b/").toEval();
|
||||
expect("a.typeof / b").toEval();
|
||||
expect("a.void / b").toEval();
|
||||
expect("void / b/").toEval();
|
||||
|
||||
expect("await / b").toEval();
|
||||
expect("await / b/").not.toEval();
|
||||
expect("async function foo() { await / b }").not.toEval();
|
||||
expect("async function foo() { await / b/ }").toEval();
|
||||
|
||||
expect("yield / b").toEval();
|
||||
expect("yield / b/").not.toEval();
|
||||
expect("function* foo() { yield / b }").not.toEval();
|
||||
expect("function* foo() { yield / b/ }").toEval();
|
||||
|
||||
expect("this / 1").toEval();
|
||||
expect("this / 1 /").not.toEval();
|
||||
expect("this / 1 / 1").toEval();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue