1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00
serenity/Userland/Libraries/LibJS/Runtime
Linus Groh b7e5f08e56 LibJS: Convert Object::get() to ThrowCompletionOr
To no one's surprise, this patch is pretty big - this is possibly the
most used AO of all of them. Definitely worth it though.
2021-10-03 20:14:03 +01:00
..
Intl LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
Temporal LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
AbstractOperations.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
AbstractOperations.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
Accessor.h LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr 2021-09-23 23:59:13 +03:00
AggregateError.cpp
AggregateError.h
AggregateErrorConstructor.cpp LibJS: Convert install_error_cause() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
AggregateErrorConstructor.h
AggregateErrorPrototype.cpp
AggregateErrorPrototype.h
ArgumentsObject.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ArgumentsObject.h LibJS: Convert internal_delete() to ThrowCompletionOr 2021-09-29 23:49:53 +01:00
Array.cpp LibJS: Use MUST() where applicable 2021-10-03 20:14:03 +01:00
Array.h LibJS: Convert internal_own_property_keys() to ThrowCompletionOr 2021-09-29 23:49:53 +01:00
ArrayBuffer.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
ArrayBuffer.h LibJS: Handle possible allocation failure in ArrayBuffer(size_t) 2021-09-06 01:53:26 +02:00
ArrayBufferConstructor.cpp LibJS: Handle possible allocation failure in ArrayBuffer(size_t) 2021-09-06 01:53:26 +02:00
ArrayBufferConstructor.h
ArrayBufferPrototype.cpp LibJS: Use ThrowCompletionOr in species_constructor() 2021-09-15 23:46:53 +01:00
ArrayBufferPrototype.h LibJS: Convert ArrayBuffer.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
ArrayConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ArrayConstructor.h
ArrayIterator.cpp
ArrayIterator.h
ArrayIteratorPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ArrayIteratorPrototype.h LibJS: Convert ArrayIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
ArrayPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ArrayPrototype.h
AtomicsObject.cpp
AtomicsObject.h
BigInt.cpp
BigInt.h
BigIntConstructor.cpp
BigIntConstructor.h
BigIntObject.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
BigIntObject.h
BigIntPrototype.cpp LibJS: Use ErrorType::NotAnObjectOfType instead of NotA 2021-09-12 00:16:39 +02:00
BigIntPrototype.h
BooleanConstructor.cpp LibJS: Convert ordinary_create_from_constructor<T> to ThrowCompletionOr 2021-09-16 13:53:37 +01:00
BooleanConstructor.h
BooleanObject.cpp
BooleanObject.h
BooleanPrototype.cpp LibJS: Use ErrorType::NotAnObjectOfType instead of NotA 2021-09-12 00:16:39 +02:00
BooleanPrototype.h
BoundFunction.cpp LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
BoundFunction.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
CommonPropertyNames.h LibJS: Implement the Intl.NumberFormat constructor 2021-09-11 11:05:50 +01:00
Completion.h LibJS: Add a MUST() macro, like TRY() but for the spec's ! shortcut 2021-10-03 20:14:03 +01:00
ConsoleObject.cpp
ConsoleObject.h
DataView.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
DataView.h
DataViewConstructor.cpp LibJS: Convert ordinary_create_from_constructor<T> to ThrowCompletionOr 2021-09-16 13:53:37 +01:00
DataViewConstructor.h
DataViewPrototype.cpp LibJS: Convert DataView.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
DataViewPrototype.h LibJS: Convert DataView.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
Date.cpp
Date.h LibJS: Parse date strings like "Wed Apr 17 23:08:53 +0000 2019" 2021-09-26 23:42:27 +02:00
DateConstructor.cpp LibJS: Parse date strings like "Wed Apr 17 23:08:53 +0000 2019" 2021-09-26 23:42:27 +02:00
DateConstructor.h
DatePrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
DatePrototype.h LibJS: Convert Date.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
DeclarativeEnvironment.cpp js: Allow for completion of lexically declared variables 2021-10-03 17:42:05 +02:00
DeclarativeEnvironment.h js: Allow for completion of lexically declared variables 2021-10-03 17:42:05 +02:00
ECMAScriptFunctionObject.cpp LibJS+LibWeb: Use Object::set_prototype() in more places 2021-10-02 14:53:06 +01:00
ECMAScriptFunctionObject.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
Environment.cpp LibJS: Mark the global object in Environment::visit_edges() 2021-09-11 14:10:11 +02:00
Environment.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
Error.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
Error.h LibJS: Convert install_error_cause() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ErrorConstructor.cpp LibJS: Convert install_error_cause() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ErrorConstructor.h
ErrorPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ErrorPrototype.h
ErrorTypes.cpp
ErrorTypes.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
Exception.cpp
Exception.h
ExecutionContext.h LibJS: Reorganize ExecutionContext a little bit 2021-09-14 21:41:51 +02:00
FinalizationRegistry.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
FinalizationRegistry.h LibJS: Put zombie cell tracking code behind a compile-time flag 2021-10-02 16:39:28 +02:00
FinalizationRegistryConstructor.cpp LibJS: Convert ordinary_create_from_constructor<T> to ThrowCompletionOr 2021-09-16 13:53:37 +01:00
FinalizationRegistryConstructor.h
FinalizationRegistryPrototype.cpp LibJS: Convert FinalizationRegistry.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
FinalizationRegistryPrototype.h LibJS: Convert FinalizationRegistry.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
FunctionConstructor.cpp LibJS: Change Interpreter::create_with_existing_{global_object => realm} 2021-09-12 15:18:25 +02:00
FunctionConstructor.h
FunctionEnvironment.cpp LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
FunctionEnvironment.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
FunctionObject.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
FunctionObject.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
FunctionPrototype.cpp LibJS: Rename ECMAScriptFunctionObject members to match spec names 2021-09-25 17:51:30 +02:00
FunctionPrototype.h
GeneratorFunctionConstructor.cpp LibJS: Rename OrdinaryFunctionObject to ECMAScriptFunctionObject 2021-09-25 17:51:30 +02:00
GeneratorFunctionConstructor.h
GeneratorFunctionPrototype.cpp
GeneratorFunctionPrototype.h
GeneratorObject.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
GeneratorObject.h LibJS: Rename OrdinaryFunctionObject to ECMAScriptFunctionObject 2021-09-25 17:51:30 +02:00
GeneratorObjectPrototype.cpp LibJS: Convert GeneratorObject.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
GeneratorObjectPrototype.h LibJS: Convert GeneratorObject.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
GlobalEnvironment.cpp LibJS: Convert is_extensible() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
GlobalEnvironment.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
GlobalObject.cpp LibJS: Use MUST() where applicable 2021-10-03 20:14:03 +01:00
GlobalObject.h LibJS: Remove transition avoidance & start caching prototype transitions 2021-10-01 02:59:29 +02:00
IndexedProperties.cpp
IndexedProperties.h
IteratorOperations.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
IteratorOperations.h LibJS: Change create_iterator_result_object's return type to Object* 2021-09-28 16:51:27 +02:00
IteratorPrototype.cpp
IteratorPrototype.h
JobCallback.h LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr 2021-09-23 23:59:13 +03:00
JSONObject.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
JSONObject.h js: Add a simple loadJSON(path) built-in to load JSON from a file 2021-09-16 21:49:50 +02:00
Map.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
Map.h
MapConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
MapConstructor.h
MapIterator.cpp
MapIterator.h
MapIteratorPrototype.cpp LibJS: Convert MapIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
MapIteratorPrototype.h LibJS: Convert MapIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
MapPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
MapPrototype.h LibJS: Remove leftover typed_this() declarations 2021-09-13 19:07:26 +01:00
MarkedValueList.cpp
MarkedValueList.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
MathObject.cpp LibJS: Always use AK::get_random() in Math.random() 2021-08-30 18:35:36 +02:00
MathObject.h
NativeFunction.cpp LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
NativeFunction.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
NumberConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
NumberConstructor.h
NumberObject.cpp
NumberObject.h
NumberPrototype.cpp LibJS: Use ErrorType::NotAnObjectOfType instead of NotA 2021-09-12 00:16:39 +02:00
NumberPrototype.h
Object.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
Object.h LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ObjectConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ObjectConstructor.h
ObjectEnvironment.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ObjectEnvironment.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
ObjectPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ObjectPrototype.h LibJS: Convert internal_set_prototype_of() to ThrowCompletionOr 2021-09-29 23:49:53 +01:00
PrimitiveString.cpp LibJS: Keep track of PrimitiveStrings and share them 2021-10-02 16:39:28 +02:00
PrimitiveString.h
Promise.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
Promise.h
PromiseConstructor.cpp LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr 2021-09-23 23:59:13 +03:00
PromiseConstructor.h
PromiseJobs.cpp LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr 2021-09-23 23:59:13 +03:00
PromiseJobs.h
PromisePrototype.cpp LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr 2021-09-23 23:59:13 +03:00
PromisePrototype.h LibJS: Convert Promise.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
PromiseReaction.cpp LibJS: Set the function names for the resolve, reject, and executor 2021-08-23 00:01:46 +01:00
PromiseReaction.h
PromiseResolvingElementFunctions.cpp LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr 2021-09-23 23:59:13 +03:00
PromiseResolvingElementFunctions.h LibJS: Specify right base for PromiseResolvingElementFunction subclasses 2021-09-11 22:26:53 +02:00
PromiseResolvingFunction.cpp
PromiseResolvingFunction.h
PropertyAttributes.h
PropertyDescriptor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
PropertyDescriptor.h
PropertyName.h LibJS: Use move semantics more when creating Reference objects 2021-09-11 20:38:45 +02:00
PrototypeObject.h LibJS: Create a class to provide common methods for object prototypes 2021-09-12 01:40:56 +02:00
ProxyConstructor.cpp
ProxyConstructor.h
ProxyObject.cpp LibJS: Convert is_extensible() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
ProxyObject.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
Realm.cpp LibJS: Allocate a Realm next to GlobalObject in Interpreter::create() 2021-09-12 11:10:20 +01:00
Realm.h LibJS: Allocate a Realm next to GlobalObject in Interpreter::create() 2021-09-12 11:10:20 +01:00
Reference.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
Reference.h LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
ReflectObject.cpp LibJS: Convert internal_own_property_keys() to ThrowCompletionOr 2021-09-29 23:49:53 +01:00
ReflectObject.h
RegExpConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
RegExpConstructor.h
RegExpObject.cpp
RegExpObject.h
RegExpPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
RegExpPrototype.h LibJS: Convert RegExp.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
RegExpStringIterator.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
RegExpStringIterator.h
RegExpStringIteratorPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
RegExpStringIteratorPrototype.h LibJS: Convert RegExpStringIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
Set.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
Set.h
SetConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
SetConstructor.h
SetIterator.cpp
SetIterator.h
SetIteratorPrototype.cpp LibJS: Convert SetIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
SetIteratorPrototype.h LibJS: Convert SetIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
SetPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
SetPrototype.h LibJS: Remove leftover typed_this() declarations 2021-09-13 19:07:26 +01:00
Shape.cpp LibJS: Put zombie cell tracking code behind a compile-time flag 2021-10-02 16:39:28 +02:00
Shape.h LibJS: Put zombie cell tracking code behind a compile-time flag 2021-10-02 16:39:28 +02:00
StringConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
StringConstructor.h
StringIterator.cpp
StringIterator.h
StringIteratorPrototype.cpp LibJS: Convert StringIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
StringIteratorPrototype.h LibJS: Convert StringIterator.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
StringObject.cpp LibJS: Use MUST() where applicable 2021-10-03 20:14:03 +01:00
StringObject.h LibJS: Convert internal_own_property_keys() to ThrowCompletionOr 2021-09-29 23:49:53 +01:00
StringOrSymbol.h
StringPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
StringPrototype.h
Symbol.cpp
Symbol.h
SymbolConstructor.cpp
SymbolConstructor.h
SymbolObject.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
SymbolObject.h
SymbolPrototype.cpp LibJS: Use ErrorType::NotAnObjectOfType instead of NotA 2021-09-12 00:16:39 +02:00
SymbolPrototype.h
TemporaryClearException.h
TypedArray.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
TypedArray.h LibJS: Convert internal_own_property_keys() to ThrowCompletionOr 2021-09-29 23:49:53 +01:00
TypedArrayConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
TypedArrayConstructor.h
TypedArrayPrototype.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
TypedArrayPrototype.h
Utf16String.cpp LibJS+AK: Use Vector<u16, 1> for UTF-16 string storage 2021-10-02 17:39:38 +02:00
Utf16String.h LibJS+AK: Use Vector<u16, 1> for UTF-16 string storage 2021-10-02 17:39:38 +02:00
Value.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
Value.h LibJS: Add const Value::as_function() 2021-09-25 17:51:30 +02:00
VM.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
VM.h LibJS: Add a way to save/restore the entire execution context stack 2021-10-03 16:42:34 +02:00
WeakContainer.cpp
WeakContainer.h LibJS: Tweak the WeakContainer::remove_swept_cells() API a little bit 2021-09-11 12:09:55 +02:00
WeakMap.cpp LibJS: Visit WeakMap's values as long as their keys were not collected 2021-09-11 18:27:56 +02:00
WeakMap.h LibJS: Put zombie cell tracking code behind a compile-time flag 2021-10-02 16:39:28 +02:00
WeakMapConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
WeakMapConstructor.h
WeakMapPrototype.cpp LibJS: Convert WeakMap.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
WeakMapPrototype.h LibJS: Remove leftover typed_this() declarations 2021-09-13 19:07:26 +01:00
WeakRef.cpp LibJS+LibWeb+Spreadsheet: Upcall visit_edges() via Base typedef 2021-09-11 14:10:11 +02:00
WeakRef.h LibJS: Put zombie cell tracking code behind a compile-time flag 2021-10-02 16:39:28 +02:00
WeakRefConstructor.cpp LibJS: Convert ordinary_create_from_constructor<T> to ThrowCompletionOr 2021-09-16 13:53:37 +01:00
WeakRefConstructor.h
WeakRefPrototype.cpp LibJS: Convert WeakRef.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
WeakRefPrototype.h LibJS: Convert WeakRef.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
WeakSet.cpp LibJS: Tweak the WeakContainer::remove_swept_cells() API a little bit 2021-09-11 12:09:55 +02:00
WeakSet.h LibJS: Put zombie cell tracking code behind a compile-time flag 2021-10-02 16:39:28 +02:00
WeakSetConstructor.cpp LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
WeakSetConstructor.h
WeakSetPrototype.cpp LibJS: Convert WeakSet.prototype to be a PrototypeObject 2021-09-12 01:40:56 +02:00
WeakSetPrototype.h LibJS: Remove leftover typed_this() declarations 2021-09-13 19:07:26 +01:00