Matthew Olsson
4c48c9d69d
LibJS: Reorganize tests into subfolders
2020-07-03 19:30:13 +02:00
Linus Groh
d14ddb6461
LibJS: Implement nullish coalescing operator (??)
2020-04-18 12:34:13 +02:00
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
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
6e5f9e20eb
LibJS: Fix logical expressions
...
The current implementation of logical AND (&&) and logical OR (||)
always returns a boolean - this is not correct.
2020-04-03 16:32:36 +02:00