mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:27:39 +00:00
LibJS: Add StringPrototype and make it the prototype of StringObject
This patch adds String.prototype.charAt() to demonstrate that prototype property lookup works, and that you can call a prototype function on an object, and it will do what you expect. :^)
This commit is contained in:
parent
f7c15d00c9
commit
2c5b9fb8f9
6 changed files with 109 additions and 0 deletions
|
@ -13,6 +13,7 @@ OBJS = \
|
|||
PrimitiveString.o \
|
||||
ScriptFunction.o \
|
||||
StringObject.o \
|
||||
StringPrototype.o \
|
||||
Token.o \
|
||||
Value.o
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue