Brian Gianforcaro
d74ad81402
js/LibJS: Move test functions to pure javascript.
...
The addition of assert functions to Userland/js
was done before we had load(..) implemented. Now
that it exists, it seems like the right move the
test helper functions to pure javascript instead
of poluting js with random global functions.
2020-04-14 12:55:31 +02:00
Linus Groh
f226746394
LibJS: Handle Infinity in Value::to_number()
2020-04-12 14:39:38 +02:00
Linus Groh
0d7a1c3157
LibJS: Update to-number-basic.js test
...
Uncomment lines that are now parsing correctly :^)
2020-04-05 16:01:46 +02:00
Brian Gianforcaro
bc40908d32
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.
2020-04-05 15:28:45 +02:00
Linus Groh
a62230770b
LibJS: Implement unary plus / minus
2020-04-02 19:55:45 +02:00
Linus Groh
c698cc899d
LibJS: Add tests for value to number conversion
2020-03-29 16:45:11 +02:00