1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00
ladybird/Libraries/LibJS/Tests/exception-ReferenceError.js

9 lines
149 B
JavaScript

function assert(x) { if (!x) console.log("FAIL"); }
try {
i < 3;
} catch (e) {
assert(e.name === "ReferenceError");
}
console.log("PASS");