mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
LibJS: Add a mechanism for callback-based object properties
This patch adds NativeProperty, which can be used to implement object properties that have C++ getters and/or setters. Use this to move String.prototype.length to its correct place. :^)
This commit is contained in:
parent
bb57bc1b42
commit
3163929990
7 changed files with 125 additions and 2 deletions
|
@ -8,6 +8,7 @@ OBJS = \
|
|||
Interpreter.o \
|
||||
Lexer.o \
|
||||
NativeFunction.o \
|
||||
NativeProperty.o \
|
||||
Object.o \
|
||||
ObjectPrototype.o \
|
||||
Parser.o \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue