Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-10-20 | LibJS: Add missing header in EnvironmentCoordinate.h | Ben Wiederhake | |
2021-10-18 | LibJS: Convert Value operator AOs to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert is_loosely_equal() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert is_less_than() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert Value::get() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert PrototypeObject::typed_this_value() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Convert PrototypeObject::typed_this_object() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Convert PrototypeObject::this_object() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Convert this_symbol_value() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Convert this_string_value() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Convert this_number_value() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Convert this_bigint_value() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Convert to_integer_or_infinity() to ThrowCompletionOr | Linus Groh | |
2021-10-18 | LibJS: Remove a bunch of forgotten exception checks after TRY_OR_DISCARD | Linus Groh | |
Not quite sure how that happened :^) | |||
2021-10-18 | LibJS: Convert to_index() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_length() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_u8_clamp() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_u8() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_i8() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_u16() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_i16() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_u32() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_i32() to ThrowCompletionOr | Idan Horowitz | |
2021-10-18 | LibJS: Convert to_number() to ThrowCompletionOr | Idan Horowitz | |
2021-10-17 | LibJS: Convert to_property_key() to ThrowCompletionOr | Idan Horowitz | |
2021-10-17 | LibJS: Convert to_double() to ThrowCompletionOr | Idan Horowitz | |
2021-10-17 | LibJS: Convert to_bigint_uint64() to ThrowCompletionOr | Idan Horowitz | |
2021-10-17 | LibJS: Convert to_bigint_int64() to ThrowCompletionOr | Idan Horowitz | |
2021-10-17 | LibJS: Convert to_bigint() to ThrowCompletionOr | Idan Horowitz | |
2021-10-17 | LibJS: Convert to_numeric() to ThrowCompletionOr | Idan Horowitz | |
2021-10-15 | LibJS: Add comment clarifying the order of function properties | davidot | |
2021-10-15 | LibJS: Fix that proxy always said that it had a [[Construct]] slot | davidot | |
2021-10-15 | LibJS: Define length and name in function in correct order | davidot | |
2021-10-15 | LibJS: Do not save state for peeking at the next token from the lexer | davidot | |
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 | LibJS: Remove ErrorType::FixmeAddAnErrorStringWithMessage | davidot | |
2021-10-15 | LibJS: Fix null deref in ObjectProperty::dump() | davidot | |
2021-10-15 | LibJS: Enable now working tests for duplicated variable declarations | davidot | |
2021-10-15 | LibJS: Implement ShadowRealm.prototype.importValue() | Linus Groh | |
Well... sort of. This adds the function itself and all the scaffolding from the ShadowRealm API (and basically completes its implementation). However, we do not nearly have enough support for modules and imports, so we currently pretend whatever was attempted to be imported failed - once we have HostImportModuleDynamically it should be relatively easy to complete the implementation. | |||
2021-10-15 | LibJS: Don't return empty value from PromiseReactionJob::call(), for now | Linus Groh | |
2021-10-15 | LibJS/Tests: Test ShadowRealm.prototype.evaluate() this value type check | Linus Groh | |
2021-10-15 | LibJS: Fix typo in LHS Object and RHS BigInt loosely equals check | Luke Wilde | |
Step 12 was using `lhs.is_bigint()` instead of `rhs.is_bigint()`, meaning you got: ```js 1n == Object(1n); // true Object(1n) == 1n; // false ``` This also adds spec comments to is_loosely_equal. | |||
2021-10-14 | LibJS: Use GlobalObject::associated_realm() for function object realms | Linus Groh | |
As outlined in the previous commit, this should be more reliable than Interpreter::realm(), as we don't always have access to an Interpreter. | |||
2021-10-14 | LibJS: Add a way to get from a GlobalObject to its associated Realm | Linus Groh | |
This is just another workaround, but it should be much more reliable than Interpreter::realm(), especially when allocating NativeFunctions and ECMAScriptFunctionObjects: we're guaranteed to have a GlobalObject at that point, and it likely was set as the GlobalObject of a Realm and can lead us back to it. We're however not guaranteed that the VM can give us an Interpreter, which is why functions in LibWeb can be a bit crashy at the moment. We use a WeakPtr<Realm> to properly handle the unlikely case where the Realm goes away after associating a GlobalObject to it. We'll always need _something_ of this sort if we want to support OrdinaryFunctionCreate and CreateBuiltinFunction without the explicit realm argument while no JS is running, because they want to use the current Realm Record (always in the first and as fallback in the second case). | |||
2021-10-14 | LibJS: Change normal_completion() parameter to Optional<Value> | Linus Groh | |
The Completion constructor `VERIFY()`s that the passed argument is not an empty Value, so normal_completion({}) would crash (although it's currently not being used anywhere). We want to pass an empty Optional<Value> instead. | |||
2021-10-14 | LibJS: Implement ShadowRealm.prototype.evaluate() | Linus Groh | |
2021-10-14 | LibJS: Implement ShadowRealm.prototype[@@toStringTag] | Linus Groh | |
2021-10-14 | LibJS: Start implementing ShadowRealm | Linus Groh | |
This commit adds the ShadowRealm object itself, its constructor, and prototype (currently empty). | |||
2021-10-14 | LibJS: Implement Wrapped Function Exotic Objects | Linus Groh | |
This is a new concept from the ShadowRealm API stage 3 proposal: https://tc39.es/proposal-shadowrealm/#sec-wrapped-function-exotic-objects | |||
2021-10-13 | LibJS: Convert to_object() to ThrowCompletionOr | Linus Groh | |
2021-10-13 | LibJS: Convert to_primitive() to ThrowCompletionOr | Linus Groh | |