1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 23:45:07 +00:00

LibJS: Add ObjectPrototype and implement hasOwnProperty()

All Objects will now have ObjectPrototype as their prototype, unless
overridden.
This commit is contained in:
Andreas Kling 2020-03-15 15:25:43 +01:00
parent f1f14945cf
commit 23b1d97b0d
8 changed files with 114 additions and 0 deletions

View file

@ -0,0 +1,2 @@
var x = "foobar";
print(x.hasOwnProperty("length"));