1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 17:34:59 +00:00
serenity/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");