1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00
serenity/Userland/Libraries/LibJS/Runtime/Intl
Linus Groh f3117d46dc LibJS: Remove GlobalObject from VM::throw_completion()
This is a continuation of the previous five commits.

A first big step into the direction of no longer having to pass a realm
(or currently, a global object) trough layers upon layers of AOs!
Unlike the create() APIs we can safely assume that this is only ever
called when a running execution context and therefore current realm
exists. If not, you can always manually allocate the Error and put it in
a Completion :^)

In the spec, throw exceptions implicitly use the current realm's
intrinsics as well: https://tc39.es/ecma262/#sec-throw-an-exception
2022-08-23 13:58:30 +01:00
..
AbstractOperations.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
AbstractOperations.h LibJS: Move PatternPartitionWithSource structure to AbstractOperations.h 2022-07-20 22:30:16 +01:00
Collator.cpp LibJS: Implement get Intl.Collator.prototype.compare 2022-02-20 22:05:59 -05:00
Collator.h LibJS: Reorganize spec steps for Intl.Collator 2022-03-15 17:30:58 +01:00
CollatorCompareFunction.cpp LibJS+LibWeb: Replace GlobalObject with Realm in Heap::allocate<T>() 2022-08-23 13:58:30 +01:00
CollatorCompareFunction.h LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
CollatorConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
CollatorConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
CollatorPrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
CollatorPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
DateTimeFormat.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DateTimeFormat.h LibJS: Move PatternPartitionWithSource structure to AbstractOperations.h 2022-07-20 22:30:16 +01:00
DateTimeFormatConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DateTimeFormatConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
DateTimeFormatFunction.cpp LibJS+LibWeb: Replace GlobalObject with Realm in Heap::allocate<T>() 2022-08-23 13:58:30 +01:00
DateTimeFormatFunction.h LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
DateTimeFormatPrototype.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DateTimeFormatPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
DisplayNames.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DisplayNames.h Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
DisplayNamesConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DisplayNamesConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
DisplayNamesPrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
DisplayNamesPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
DurationFormat.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DurationFormat.h LibJS: Disallow mixed-sign durations in Intl.DurationFormat 2022-07-02 18:32:35 +03:00
DurationFormatConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DurationFormatConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
DurationFormatPrototype.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
DurationFormatPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
Intl.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
Intl.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
ListFormat.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
ListFormat.h Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
ListFormatConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
ListFormatConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
ListFormatPrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
ListFormatPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
Locale.cpp LibJS+LibWeb: Replace GlobalObject with Realm in Heap::allocate<T>() 2022-08-23 13:58:30 +01:00
Locale.h LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
LocaleConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
LocaleConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
LocalePrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
LocalePrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
MathematicalValue.cpp LibJS: Implement a basic Intl mathematical value 2022-07-20 18:21:24 +01:00
MathematicalValue.h LibJS: Implement a basic Intl mathematical value 2022-07-20 18:21:24 +01:00
NumberFormat.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
NumberFormat.h LibJS: Implement Intl.NumberFormat.prototype.formatRangeToParts 2022-07-20 22:30:16 +01:00
NumberFormatConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
NumberFormatConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
NumberFormatFunction.cpp LibJS+LibWeb: Replace GlobalObject with Realm in Heap::allocate<T>() 2022-08-23 13:58:30 +01:00
NumberFormatFunction.h LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
NumberFormatPrototype.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
NumberFormatPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
PluralRules.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
PluralRules.h LibJS: Hook the Intl mathematical value into Intl.NumberFormat 2022-07-20 18:21:24 +01:00
PluralRulesConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
PluralRulesConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
PluralRulesPrototype.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
PluralRulesPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
RelativeTimeFormat.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
RelativeTimeFormat.h LibJS: Use Intl.PluralRules within Intl.RelativeFormat 2022-07-08 11:51:54 +02:00
RelativeTimeFormatConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
RelativeTimeFormatConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
RelativeTimeFormatPrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
RelativeTimeFormatPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
Segmenter.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
Segmenter.h LibJS: Implement the Intl CreateSegmentDataObject AO 2022-01-31 21:05:04 +02:00
SegmenterConstructor.cpp LibJS: Remove GlobalObject from VM::throw_completion() 2022-08-23 13:58:30 +01:00
SegmenterConstructor.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
SegmenterPrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
SegmenterPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
SegmentIterator.cpp LibJS+LibWeb: Replace GlobalObject with Realm in Heap::allocate<T>() 2022-08-23 13:58:30 +01:00
SegmentIterator.h LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
SegmentIteratorPrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
SegmentIteratorPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
Segments.cpp LibJS+LibWeb: Replace GlobalObject with Realm in Heap::allocate<T>() 2022-08-23 13:58:30 +01:00
Segments.h LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
SegmentsPrototype.cpp LibJS+LibWeb: Replace GlobalObject with Realm in create() functions 2022-08-23 13:58:30 +01:00
SegmentsPrototype.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00