LibJS: Parse labelled statements

All statements now have an optional label string that can be null.
This commit is contained in:
Matthew Olsson 2020-05-28 11:09:19 -07:00 committed by Andreas Kling
commit 10bf4ba3dc
Notes: sideshowbarker 2024-07-19 05:59:38 +09:00
4 changed files with 44 additions and 0 deletions

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