
Switch the LibJS test suite to use the native assert implementation surfaced inside the js repl when it's launched in test mode.
12 lines
174 B
JavaScript
12 lines
174 B
JavaScript
try {
|
|
var j = 0;
|
|
for (var i = 0; i < 9; ++i) {
|
|
if (i == 3)
|
|
continue;
|
|
++j;
|
|
}
|
|
assert(j == 8);
|
|
console.log("PASS");
|
|
} catch {
|
|
}
|
|
|