1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 07:05:06 +00:00

LibJS: Add a tiny little test for the ReferenceError exception

This commit is contained in:
Andreas Kling 2020-03-28 10:27:48 +01:00
parent c50fbf6da0
commit 0cbbf6f5eb

View file

@ -0,0 +1,9 @@
function assert(x) { if (!x) console.log("FAIL"); }
try {
i < 3;
} catch (e) {
assert(e.name === "ReferenceError");
}
console.log("PASS");