mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37:00 +02:00
Switch the LibJS test suite to use the native assert implementation surfaced inside the js repl when it's launched in test mode.
6 lines
75 B
JavaScript
6 lines
75 B
JavaScript
try {
|
|
assert(Math.sqrt(9) === 3);
|
|
console.log("PASS");
|
|
} catch {
|
|
}
|