mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibJS: Parse labelled statements
All statements now have an optional label string that can be null.
This commit is contained in:
parent
5cd01ed79e
commit
10bf4ba3dc
Notes:
sideshowbarker
2024-07-19 05:59:38 +09:00
Author: https://github.com/mattco98
Commit: 10bf4ba3dc
Pull-request: https://github.com/SerenityOS/serenity/pull/2434
Reviewed-by: https://github.com/sunverwerth
4 changed files with 44 additions and 0 deletions
13
Libraries/LibJS/Tests/labels.js
Normal file
13
Libraries/LibJS/Tests/labels.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
load("test-common.js");
|
||||
|
||||
try {
|
||||
test:
|
||||
{
|
||||
let o = 1;
|
||||
assert(o === 1);
|
||||
}
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue