mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 15:54:58 +00:00

Switch the LibJS test suite to use the native assert implementation surfaced inside the js repl when it's launched in test mode.
7 lines
96 B
JavaScript
7 lines
96 B
JavaScript
try {
|
|
i < 3;
|
|
} catch (e) {
|
|
assert(e.name === "ReferenceError");
|
|
}
|
|
|
|
console.log("PASS");
|