1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00
serenity/Libraries/LibJS
Linus Groh 9c8d390682 LibJS: Refactor Accessor
This changes Accessor's m_{getter,setter} from Value to Function* which
seems like a better API to me - a getter/setter must either be a
function or missing, and the creation of an accessor with other values
must be prevented by the parser and Object.defineProperty() anyway.

Also add Accessor::set_{getter,setter}() so we can reuse an already
created accessor when evaluating an ObjectExpression with getter/setter
shorthand syntax.
2020-05-24 18:49:58 +02:00
..
Heap LibJS: Use __APPLE__ instead of __MACH__ for MacOS build 2020-05-23 18:09:07 +02:00
Runtime LibJS: Refactor Accessor 2020-05-24 18:49:58 +02:00
Tests LibJS: Add Array.prototype.reduce() (#2334) 2020-05-23 16:41:25 +02:00
AST.cpp LibJS: Refactor Accessor 2020-05-24 18:49:58 +02:00
AST.h LibJS: Add object literal getter/setter shorthand 2020-05-22 10:59:05 +02:00
CMakeLists.txt LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
Console.cpp LibJS: Add side-effect-free version of Value::to_string() 2020-05-15 13:50:42 +02:00
Console.h LibJS: Implement ConsoleClient 2020-05-05 09:15:16 +02:00
Forward.h LibJS: Add getter/setter support 2020-05-21 22:56:18 +02:00
Interpreter.cpp LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
Interpreter.h Browser: Add JS Console 2020-05-24 02:20:08 +02:00
Lexer.cpp LibJS: Remove syntax errors from lexer 2020-05-15 09:53:52 +02:00
Lexer.h LibJS: Remove syntax errors from lexer 2020-05-15 09:53:52 +02:00
Parser.cpp LibJS: Add object literal getter/setter shorthand 2020-05-22 10:59:05 +02:00
Parser.h LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00
Token.cpp LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00
Token.h LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00