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:
Brian Gianforcaro 2020-04-05 05:52:09 -07:00 committed by Andreas Kling
commit bc40908d32
Notes: sideshowbarker 2024-07-19 07:54:00 +09:00
60 changed files with 2 additions and 119 deletions

View file

@ -14,7 +14,7 @@ fail_count=0
count=0
for f in *.js; do
result=`$js_program $f`
result=`$js_program -t $f`
if [ "$result" = "PASS" ]; then
let pass_count++
echo -ne "( \033[32;1mPass\033[0m ) "