Matthew Olsson
6d58c48c2f
test-js: Use prettier and format all files
2020-07-06 23:40:35 +02:00
Matthew Olsson
78155a6668
LibJS: Consolidate error messages into ErrorTypes.h
...
Now, exceptions can be thrown with
interpreter.throw_exception<T>(ErrorType:TYPE, "format", "args",
"here").
2020-06-11 07:46:20 +02:00
Linus Groh
0718f216af
LibJS: Add assertThrowsError() test function
2020-04-20 11:38:01 +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
Linus Groh
b9415dc0e9
LibJS: Use assertNotReached() in tests
2020-04-13 16:28:50 +02:00
Brian Gianforcaro
0d41e542b7
LibJS: Throw on assignment of an const variable
...
Was stubbed out as an assert, should be handled with a runtime exception.
2020-04-13 01:12:31 +02:00