mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Use the native assert() implementation now avaiable in 'js -t'
Switch the LibJS test suite to use the native assert implementation surfaced inside the js repl when it's launched in test mode.
This commit is contained in:
committed by
Andreas Kling
parent
4233c8662b
commit
bc40908d32
@@ -1,5 +1,3 @@
|
||||
function assert(x) { if (!x) throw 1; }
|
||||
|
||||
try {
|
||||
assert((0 | 0) === 0);
|
||||
assert((0 | 1) === 1);
|
||||
|
||||
Reference in New Issue
Block a user