1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-16 02:01:08 +00:00
serenity/Libraries/LibJS/Runtime
mattco98 23ec578a01 LibJS: Implement correct attributes for (almost) all properties
Added the ability to include a u8 attributes parameter with all of the
various put methods in the Object class. They can be omitted, in which
case it defaults to "Writable | Enumerable | Configurable", just like
before this commit.

All of the attribute values for each property were gathered from
SpiderMonkey in the Firefox console. Some properties (e.g. all of the
canvas element properties) have undefined property descriptors... not
quite sure what that means. Those were left as the default specified
above.
2020-04-28 09:29:50 +02:00
..
Array.cpp LibJS: Implement Array length setter 2020-04-23 09:47:23 +02:00
Array.h LibJS: Implement Array length setter 2020-04-23 09:47:23 +02:00
ArrayConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ArrayConstructor.h LibJS: Add basic Array constructor 2020-04-04 22:28:21 +02:00
ArrayPrototype.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ArrayPrototype.h LibJS: Add Array.prototype.findIndex 2020-04-27 11:23:23 +02:00
BooleanConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
BooleanConstructor.h LibJS: Reformat BooleanConstructor.{cpp,h} 2020-04-07 17:25:50 +02:00
BooleanObject.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
BooleanObject.h LibJS: Pass prototype to BooleanObject constructor 2020-04-18 10:28:22 +02:00
BooleanPrototype.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
BooleanPrototype.h LibJS: Boolean, Number and String prototypes should have values too 2020-04-10 13:09:35 +02:00
BoundFunction.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
BoundFunction.h LibJS: Implement Function.prototype.bind() 2020-04-21 12:23:07 +02:00
Cell.cpp LibJS: Allow cells to mark null pointers 2020-04-16 16:10:38 +02:00
Cell.h LibJS: Allow cells to mark null pointers 2020-04-16 16:10:38 +02:00
ConsoleObject.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
ConsoleObject.h LibJS: Add console.{debug,info,warn,error}() 2020-04-12 18:42:42 +02:00
Date.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
Date.h LibJS: Pass prototype to Date constructor 2020-04-18 10:28:22 +02:00
DateConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
DateConstructor.h LibJS: Implement constructor/non-constructor function calls 2020-04-01 20:18:36 +02:00
DatePrototype.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
DatePrototype.h LibJS: Implement Date.prototype.to{Date,Time}String() 2020-03-30 21:43:35 +02:00
Error.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
Error.h LibJS: Pass prototype to Error constructors 2020-04-18 10:28:22 +02:00
ErrorConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ErrorConstructor.h LibJS: Use enumerator macros for boilerplate code around native types 2020-04-10 14:06:52 +02:00
ErrorPrototype.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ErrorPrototype.h LibJS: Implement Error.prototype.name setter (#1776) 2020-04-13 11:19:53 +02:00
Exception.cpp LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Exception.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Function.cpp LibJS: Stop using Optional<Value> in favor of Value's empty state 2020-04-25 18:45:22 +02:00
Function.h LibJS: Implement Function.prototype.bind() 2020-04-21 12:23:07 +02:00
FunctionConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
FunctionConstructor.h LibJS: Add Function() and Function.prototype 2020-04-04 15:58:49 +02:00
FunctionPrototype.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
FunctionPrototype.h LibJS: Pass prototype to Function constructors 2020-04-18 10:28:22 +02:00
GlobalObject.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
GlobalObject.h LibJS: Add isFinite() 2020-04-23 11:03:42 +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: Add MarkedValueList and use it for argument passing 2020-04-19 17:34:33 +02:00
MarkedValueList.h LibJS: Add MarkedValueList and use it for argument passing 2020-04-19 17:34:33 +02:00
MathObject.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
MathObject.h LibJS: Add Math.pow() 2020-04-23 19:38:13 +02:00
NativeFunction.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
NativeFunction.h LibJS: Pass prototype to Function constructors 2020-04-18 10:28:22 +02:00
NativeProperty.cpp LibJS+LibWeb: Pass prototype to Object constructor 2020-04-18 11:00:55 +02:00
NativeProperty.h LibJS+LibWeb: Move native properties to separate getters/setters 2020-03-29 00:37:33 +01:00
NumberConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
NumberConstructor.h LibJS: Implement Number.isInteger() 2020-04-26 20:36:59 +02:00
NumberObject.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
NumberObject.h LibJS: Pass prototype to NumberObject constructor 2020-04-18 10:28:22 +02:00
NumberPrototype.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
NumberPrototype.h LibJS: Boolean, Number and String prototypes should have values too 2020-04-10 13:09:35 +02:00
Object.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
Object.h LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ObjectConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ObjectConstructor.h LibJS: Implement Object.is() 2020-04-26 13:53:05 +02:00
ObjectPrototype.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ObjectPrototype.h LibJS: Pass prototype to Function constructors 2020-04-18 10:28:22 +02:00
PrimitiveString.cpp LibJS: Add js_string(Interpreter&, String) 2020-04-04 12:58:05 +02:00
PrimitiveString.h LibJS: Add js_string(Interpreter&, String) 2020-04-04 12:58:05 +02:00
PropertyName.h LibJS: Support array holes, encoded as empty JS::Value 2020-04-06 20:27:44 +02:00
ScriptFunction.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
ScriptFunction.h LibJS: Pass prototype to Function constructors 2020-04-18 10:28:22 +02:00
Shape.cpp LibJS: Implement basic support for the "delete" operator 2020-04-26 15:51:07 +02:00
Shape.h LibJS: Implement basic support for the "delete" operator 2020-04-26 15:51:07 +02:00
StringConstructor.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
StringConstructor.h LibJS: Add String constructor :^) 2020-04-10 14:14:02 +02:00
StringObject.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
StringObject.h LibJS: Pass prototype to StringObject constructor 2020-04-18 10:28:22 +02:00
StringPrototype.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
StringPrototype.h LibJS: Add String.prototype.includes 2020-04-25 16:54:25 +02:00
Uint8ClampedArray.cpp LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
Uint8ClampedArray.h LibJS: Implement correct attributes for (almost) all properties 2020-04-28 09:29:50 +02:00
Value.cpp LibJS: Stop using Optional<Value> in favor of Value's empty state 2020-04-25 18:45:22 +02:00
Value.h LibJS: Implement Object.is() 2020-04-26 13:53:05 +02:00