1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 09:55:07 +00:00
serenity/Libraries/LibJS/Tests/labels.js
Matthew Olsson 10bf4ba3dc LibJS: Parse labelled statements
All statements now have an optional label string that can be null.
2020-05-29 16:20:32 +02:00

13 lines
170 B
JavaScript

load("test-common.js");
try {
test:
{
let o = 1;
assert(o === 1);
}
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}