Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00
Linus Groh
5122f98198
Base+LibJS+LibWeb: Make prettier clean
...
Also use "// prettier-ignore" comments where necessary rather than
excluding whole files (via .prettierignore).
2020-12-27 21:25:27 +01:00
Linus Groh
5a307836c1
LibJS: Handle symbol PropertyName in primitive assignment error
...
We can't just to_string() the PropertyName, it might be a symbol.
Instead to_value() it and then use to_string_without_side_effects() as
usual.
Fixes #4062 .
2020-11-12 11:40:29 +01:00
Matthew Olsson
1ef573eb30
LibJS: Indent tests with 4 spaces instead of 2
2020-07-06 23:40:35 +02:00
Matthew Olsson
918f4affd5
LibJS: Convert remaining top-level tests to new system
2020-07-06 23:40:35 +02:00
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
8ff4587f65
LibJS: Throw in strict mode when assigning property to primitive value
2020-05-29 07:45:22 +02:00