1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 20:45:00 +00:00
Commit graph

1586 commits

Author SHA1 Message Date
davidot
9c9aaf4d4f LibJS: Don't VERIFY that a function is Regular when executing in AST
By replacing this VERIFY with a thrown Error we no longer crash when
calling a generator function in the AST interpreter. This allows us to
more gracefully handle situation which have not been implemented yet.
In particular this helps the libjs-test262-runner since it can now
continue on to the next tests instead of having the entire process end.
2021-10-24 08:38:02 +01:00
Timothy Flynn
e503b60bdc LibJS: Convert a few TRYs to MUST in RegExp.prototype
These are marked with ! in the spec. This also adds assertions above
a couple of these operations to be extra sure (the spec also indicates
we should make these assertions).
2021-10-23 19:22:34 +01:00
Timothy Flynn
20f73d2abc LibJS: Convert Atomics functions to ThrowCompletionOr 2021-10-23 19:16:03 +01:00
Timothy Flynn
3edf86462b LibJS: Convert typed_array_from to ThrowCompletionOr 2021-10-23 19:16:03 +01:00
Idan Horowitz
2ab089fa21 LibJS: Convert RegExpStringIteratorPrototype to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
063ce946b7 LibJS: Convert RegExpPrototype functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
9b3c91aa65 LibJS: Convert the RegExpExec AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
a89d9d2c6f LibJS: Convert the RegExpBuiltinExec AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
a2fbf6a3d5 LibJS: Convert the MakeIndicesArray AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
e3181a7ded LibJS: Convert RegExpConstructor functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
844be7a0a5 LibJS: Convert the RegExpCreate AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
d9f5e2d461 LibJS: Convert the RegExpInitialize AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
35faf50941 LibJS: Convert PromisePrototype functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
5af8f72d54 LibJS: Convert PromiseConstructor functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
81bdb20c61 LibJS: Convert the PromiseResolve AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
0d602c5ec5 LibJS: Convert the NewPromiseCapability AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
2b87f77578 LibJS: Convert DatePrototype functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
ba39a54bb8 LibJS: Convert DateConstructor functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
306c25f3c2 LibJS: Convert the NumberToBigInt AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
f7bafea661 LibJS: Convert TypedArrayConstructor functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
92b25cacd1 LibJS: Convert TypedArrayPrototype functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
94be1f772a LibJS: Convert typed_array_merge_sort to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
86aa8a14ea LibJS: Convert the TypedArraySpeciesCreate AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
18c2d537c7 LibJS: Convert StringPrototype functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
38c4693c70 LibJS: Convert the CreateHTML AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
0948bd8c1e LibJS: Convert the PadString AO to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
70a35f9600 LibJS: Convert resolve_best_locale to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Idan Horowitz
28e1e03234 LibJS: Convert StringConstructor functions to ThrowCompletionOr 2021-10-23 18:01:51 +02:00
Linus Groh
dd2655c1fb LibJS: Update Annex B String.prototype extension spec section numbers 2021-10-23 11:38:13 +02:00
Linus Groh
d655a0a42e LibJS: Add "at" to Array.prototype[@@unscopables] 2021-10-23 11:38:13 +02:00
Linus Groh
534fd41fa3 LibJS: Use ECMA-262 spec URLs for .at() (relative indexing, now stage 4) 2021-10-23 11:38:13 +02:00
Linus Groh
5ff7d7945d LibJS: Use ECMA-262 spec URL for Object.hasOwn() (now stage 4) 2021-10-23 11:38:13 +02:00
Linus Groh
60ee542612 LibJS: Mark GetEpochFromISOParts as infallible
This is an editorial change in the Temporal spec.

See: 66ea81b
2021-10-23 01:05:50 +01:00
Idan Horowitz
0f5cfe975f LibJS: Convert ArrayPrototype functions to ThrowCompletionsOr 2021-10-23 02:49:41 +03:00
Idan Horowitz
36446c0bd5 LibJS: Convert the FlattenIntoArray AO to ThrowCompletionOr 2021-10-23 02:49:41 +03:00
Idan Horowitz
953265805e LibJS: Convert array_merge_sort to ThrowCompletionOr 2021-10-23 02:49:41 +03:00
Idan Horowitz
ad318ec123 LibJS: Convert the ArraySpeciesCreate AO to ThrowCompletionOr 2021-10-23 02:49:41 +03:00
Idan Horowitz
36aef8ee95 LibJS: Convert ArrayConstructor functions to ThrowCompletionOr 2021-10-23 02:49:41 +03:00
Idan Horowitz
e26d9f419b LibJS: Remove vm.construct and it's usages 2021-10-23 02:49:41 +03:00
Linus Groh
66770de264 LibJS: Convert Intl.NumberFormat functions to ThrowCompletionOr 2021-10-22 23:20:18 +01:00
Linus Groh
351f0b70bd LibJS: Convert Intl.Locale functions to ThrowCompletionOr 2021-10-22 23:20:18 +01:00
Linus Groh
9fb1d7e18b LibJS: Convert Intl.ListFormat functions to ThrowCompletionOr 2021-10-22 23:20:18 +01:00
Linus Groh
15eadcf023 LibJS: Convert Intl.DisplayNames functions to ThrowCompletionOr 2021-10-22 23:20:18 +01:00
Linus Groh
68df9e4dfb LibJS: Convert Intl.getCanonicalLocales() function to ThrowCompletionOr 2021-10-22 23:20:18 +01:00
Idan Horowitz
db5df26841 LibJS: Convert Array AOs to ThrowCompletionOr 2021-10-22 15:07:04 +03:00
Idan Horowitz
3426285738 LibJS: Convert Locale AOs to ThrowCompletionOr 2021-10-22 15:07:04 +03:00
Linus Groh
9143d37907 LibJS: Convert Temporal.ZonedDateTime functions to ThrowCompletionOr 2021-10-21 22:31:31 +01:00
Linus Groh
7085458a23 LibJS: Convert Temporal.TimeZone functions to ThrowCompletionOr 2021-10-21 22:31:31 +01:00
Linus Groh
15f52c5f8e LibJS: Convert Temporal.PlainYearMonth functions to ThrowCompletionOr 2021-10-21 22:31:31 +01:00
Linus Groh
e4e04528af LibJS: Convert Temporal.PlainTime functions to ThrowCompletionOr 2021-10-21 22:31:31 +01:00