1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 13:15:09 +00:00
serenity/Libraries/LibJS/Runtime
Jack Karamanian a535d58cac LibJS: Add Object::define_accessor()
This is a helper function based on the getter/setter definition logic from
ObjectExpression::execute() to look up an Accessor property if it already
exists, define a new Accessor property if it doesn't exist, and set the getter or
setter function on the Accessor.
2020-06-29 17:54:54 +02:00
..
Accessor.h LibJS: Pass GlobalObject& when constructing an Accessor 2020-06-20 17:50:48 +02:00
Array.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
Array.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ArrayConstructor.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
ArrayConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ArrayPrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
ArrayPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
BigInt.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
BigInt.h LibJS: Add BigInt 2020-06-07 19:29:40 +02:00
BigIntConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
BigIntConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
BigIntObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
BigIntObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
BigIntPrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
BigIntPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
BooleanConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
BooleanConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
BooleanObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
BooleanObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
BooleanPrototype.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
BooleanPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
BoundFunction.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
BoundFunction.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Cell.cpp LibJS: Implement correct object property ordering 2020-04-29 18:47:03 +02:00
Cell.h LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
ConsoleObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
ConsoleObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Date.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
Date.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
DateConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
DateConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
DatePrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
DatePrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Error.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
Error.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ErrorConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
ErrorConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ErrorPrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
ErrorPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ErrorTypes.cpp LibJS: Consolidate error messages into ErrorTypes.h 2020-06-11 07:46:20 +02:00
ErrorTypes.h LibWeb: Generate CanvasRenderingContext2D bindings from IDL :^) 2020-06-22 19:07:25 +02:00
Exception.cpp LibJS: Store basic traceback in Exception 2020-06-02 15:22:34 +02:00
Exception.h LibJS: Store basic traceback in Exception 2020-06-02 15:22:34 +02:00
Function.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
Function.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
FunctionConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
FunctionConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
FunctionPrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
FunctionPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
GlobalObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
GlobalObject.h LibWeb: Make wrapper factory functions take JS::GlobalObject& 2020-06-23 16:57:39 +02:00
IndexedProperties.cpp LibJS: Distinguish between omitted descriptor attributes and false ones 2020-06-06 22:13:01 +02:00
IndexedProperties.h LibJS: Distinguish between omitted descriptor attributes and false ones 2020-06-06 22:13:01 +02:00
JSONObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
JSONObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
LexicalEnvironment.cpp LibJS: Allow cells to mark null pointers 2020-04-16 16:10:38 +02:00
LexicalEnvironment.h LibJS: Introduce LexicalEnvironment 2020-04-15 22:07:20 +02:00
MarkedValueList.cpp LibJS: run clang-format on all the files 2020-05-05 09:15:16 +02:00
MarkedValueList.h LibJS: Add MarkedValueList and use it for argument passing 2020-04-19 17:34:33 +02:00
MathObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
MathObject.h LibJS: expose some more math functions 2020-06-22 10:33:50 +02:00
NativeFunction.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
NativeFunction.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
NativeProperty.cpp LibJS: Make NativeProperty a plain Cell instead of an Object 2020-06-23 17:56:57 +02:00
NativeProperty.h LibJS: Make NativeProperty a plain Cell instead of an Object 2020-06-23 17:56:57 +02:00
NumberConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
NumberConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
NumberObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
NumberObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
NumberPrototype.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
NumberPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Object.cpp LibJS: Add Object::define_accessor() 2020-06-29 17:54:54 +02:00
Object.h LibJS: Add Object::define_accessor() 2020-06-29 17:54:54 +02:00
ObjectConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
ObjectConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ObjectPrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
ObjectPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
PrimitiveString.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
PrimitiveString.h LibJS: Add js_string(Interpreter&, String) 2020-04-04 12:58:05 +02:00
PropertyAttributes.cpp LibJS: Add Proxy objects 2020-06-06 22:13:01 +02:00
PropertyAttributes.h LibJS: Add Proxy objects 2020-06-06 22:13:01 +02:00
PropertyName.h LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
ProxyConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
ProxyConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ProxyObject.cpp LibJS: Handle "receiver" argument in Reflect.{get,set}() 2020-06-25 15:51:47 +02:00
ProxyObject.h LibJS: Handle "receiver" argument in Reflect.{get,set}() 2020-06-25 15:51:47 +02:00
ProxyPrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
ProxyPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Reference.cpp LibJS: Pass GlobalObject& to Reference get/put 2020-06-20 17:50:48 +02:00
Reference.h LibJS: Pass GlobalObject& to Reference get/put 2020-06-20 17:50:48 +02:00
ReflectObject.cpp LibJS: Handle "receiver" argument in Reflect.{get,set}() 2020-06-25 15:51:47 +02:00
ReflectObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
RegExpConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
RegExpConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
RegExpObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
RegExpObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
RegExpPrototype.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
RegExpPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
ScriptFunction.cpp LibJS: Define the "constructor" property on ScriptFunction's prototype 2020-06-29 17:54:54 +02:00
ScriptFunction.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Shape.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
Shape.h LibJS: Always keep a reference to the global object in Shape 2020-06-08 12:15:58 +02:00
StringConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
StringConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
StringObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
StringObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
StringPrototype.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
StringPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Symbol.cpp LibJS: Move native objects towards two-pass construction 2020-06-20 15:46:30 +02:00
Symbol.h LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
SymbolConstructor.cpp LibJS: Object::initialize() overrides must always call base class 2020-06-20 17:50:48 +02:00
SymbolConstructor.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
SymbolObject.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
SymbolObject.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
SymbolPrototype.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
SymbolPrototype.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Uint8ClampedArray.cpp LibJS: Clarify Object (base class) construction somewhat 2020-06-23 17:21:53 +02:00
Uint8ClampedArray.h LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00
Value.cpp LibJS: to_string_without_side_effects() should handle NativeProperty 2020-06-26 00:53:25 +02:00
Value.h LibJS: Make NativeProperty a plain Cell instead of an Object 2020-06-23 17:56:57 +02:00