davidot
c7a6572789
LibJS: Add private references
2021-10-20 23:19:17 +01:00
davidot
d94b5e511f
LibJS: Add slot [[PrivateElements]] and related methods to Object
2021-10-20 23:19:17 +01:00
davidot
13ead80ee6
LibJS: Add PrivateEnvironment
2021-10-20 23:19:17 +01:00
davidot
eeb42c21d1
LibJS: Lex private identifiers, identifiers prefixed with a '#'
2021-10-20 23:19:17 +01:00
davidot
6b2accce31
LibJS: Add static initializers to classes
2021-10-20 23:19:17 +01:00
davidot
1245512c50
LibJS: Make class definition evaluation more spec like in ordering
2021-10-20 23:19:17 +01:00
Linus Groh
d3ef08217b
LibJS: Remove ErrorType::FixmeAddAnErrorString
...
Just add a proper ErrorType the first time, it's not that hard. We can
always iterate on the message later.
2021-10-20 18:46:24 +01:00
Linus Groh
cf109533de
LibJS: Add ErrorTypes for Promise ownKeys trap invariant violations
2021-10-20 18:46:24 +01:00
Linus Groh
ca09f20dcf
LibJS: Add ErrorType for IterableToListOfType value type mismatch
2021-10-20 18:46:24 +01:00
Linus Groh
8feae81025
LibJS: Add ErrorType for duplicate global environment binding
2021-10-20 18:46:24 +01:00
Idan Horowitz
40eb3a39d4
LibJS: Rename define_native_function => define_old_native_function
...
This method will eventually be removed once all native functions are
converted to ThrowCompletionOr
2021-10-20 12:27:19 +01:00
Idan Horowitz
ca27e5eff5
LibJS: Convert NativeFunction callback to ThrowCompletionOr
2021-10-20 12:27:19 +01:00
Idan Horowitz
20163c0584
LibJS: Add ThrowCompletionOr versions of the JS native function macros
...
The old versions were renamed to JS_DECLARE_OLD_NATIVE_FUNCTION and
JS_DEFINE_OLD_NATIVE_FUNCTION, and will be eventually removed once all
native functions were converted to the new format.
2021-10-20 12:27:19 +01:00
Idan Horowitz
3355b52cca
LibJS: Remove unused JS_{DECLARE,DEFINE}_NATIVE_{GETTER,SETTER} macros
2021-10-20 12:27:19 +01:00
Idan Horowitz
56e769e4ba
LibJS: Replace usages of JS_{DECLARE, DEFINE}_NATIVE_GETTER
...
These macros are equivalent to JS_{DECLARE, DEFINE}_NATIVE_FUNCTION and
were only sometimes used, so let's just get rid of them altogether.
2021-10-20 12:27:19 +01:00
Ben Wiederhake
0a53cf2a07
LibJS: Add missing header in EnvironmentCoordinate.h
2021-10-20 09:20:18 +01:00
Idan Horowitz
545d403f6b
LibJS: Convert Value operator AOs to ThrowCompletionOr
2021-10-18 23:06:11 +01:00
Idan Horowitz
48ac15758e
LibJS: Convert is_loosely_equal() to ThrowCompletionOr
2021-10-18 23:06:11 +01:00
Idan Horowitz
b5e28410c5
LibJS: Convert is_less_than() to ThrowCompletionOr
2021-10-18 23:06:11 +01:00
Idan Horowitz
c15a3b0576
LibJS: Convert Value::get() to ThrowCompletionOr
2021-10-18 23:06:11 +01:00
Linus Groh
2fa9422b3b
LibJS: Convert PrototypeObject::typed_this_value() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
4b7c1f703e
LibJS: Convert PrototypeObject::typed_this_object() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
7c29979e30
LibJS: Convert PrototypeObject::this_object() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
08db3b9f66
LibJS: Convert this_symbol_value() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
60366ae032
LibJS: Convert this_string_value() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
233bb89929
LibJS: Convert this_number_value() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
f6cf44c3db
LibJS: Convert this_bigint_value() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
be28a6142b
LibJS: Convert to_integer_or_infinity() to ThrowCompletionOr
2021-10-18 21:24:30 +01:00
Linus Groh
ffee3890a7
LibJS: Remove a bunch of forgotten exception checks after TRY_OR_DISCARD
...
Not quite sure how that happened :^)
2021-10-18 21:24:30 +01:00
Idan Horowitz
85a28a6555
LibJS: Convert to_index() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
aad12b050b
LibJS: Convert to_length() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
750da61c0f
LibJS: Convert to_u8_clamp() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
99287afc99
LibJS: Convert to_u8() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
1b7dbb6b3b
LibJS: Convert to_i8() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
7bbb92dfe9
LibJS: Convert to_u16() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
627b1205ce
LibJS: Convert to_i16() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
cc94bba5c0
LibJS: Convert to_u32() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
f6a5ff7b00
LibJS: Convert to_i32() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
20d990563c
LibJS: Convert to_number() to ThrowCompletionOr
2021-10-18 08:01:38 +03:00
Idan Horowitz
c488f5a59d
LibJS: Convert to_property_key() to ThrowCompletionOr
2021-10-17 12:12:35 +01:00
Idan Horowitz
1639ed7e0a
LibJS: Convert to_double() to ThrowCompletionOr
2021-10-17 12:12:35 +01:00
Idan Horowitz
51c33b3b35
LibJS: Convert to_bigint_uint64() to ThrowCompletionOr
2021-10-17 12:12:35 +01:00
Idan Horowitz
df181809fd
LibJS: Convert to_bigint_int64() to ThrowCompletionOr
2021-10-17 12:12:35 +01:00
Idan Horowitz
e87cea8248
LibJS: Convert to_bigint() to ThrowCompletionOr
2021-10-17 12:12:35 +01:00
Idan Horowitz
b8f101888b
LibJS: Convert to_numeric() to ThrowCompletionOr
2021-10-17 12:12:35 +01:00
davidot
7beccaf41b
LibJS: Add comment clarifying the order of function properties
2021-10-15 17:47:27 +01:00
davidot
021691753d
LibJS: Fix that proxy always said that it had a [[Construct]] slot
2021-10-15 10:27:16 +01:00
davidot
1c7c53e5a0
LibJS: Define length and name in function in correct order
2021-10-15 10:27:16 +01:00
davidot
9394cbcd24
LibJS: Do not save state for peeking at the next token from the lexer
...
This saves having to save and load the parser state.
This could give an incorrect token in some cases where the parser
communicates to the lexer. However this is not applicable in any of the
current usages and this would require one to parse the current token
as normal which is exactly what you don't want to do in that scenario.
2021-10-15 10:27:16 +01:00
davidot
c3cb44ca8a
LibJS: Remove ErrorType::FixmeAddAnErrorStringWithMessage
2021-10-15 10:27:16 +01:00