Andreas Kling
fca08bd000
LibJS: Move builtin prototypes to the global object
...
This moves us towards being able to run JavaScript in different global
objects without allocating a separate GC heap.
2020-04-18 13:24:45 +02:00
Andreas Kling
bc1ece7f37
LibJS+LibWeb: Pass prototype to Object constructor
...
Everyone who constructs an Object must now pass a prototype object when
applicable. There's still a fair amount of code that passes something
fetched from the Interpreter, but this brings us closer to being able
to detach prototypes from Interpreter eventually.
2020-04-18 11:00:55 +02:00
Andreas Kling
2a15323029
LibJS: Pass prototype to BooleanObject constructor
2020-04-18 10:28:22 +02:00
Andreas Kling
070a8f2689
LibJS: Boolean, Number and String prototypes should have values too
...
It appears that calling .valueOf() on an objectified primitive's
prototype should return a value after all.
This matches what other engines are doing.
2020-04-10 13:09:35 +02:00
Jack Karamanian
edae926cb0
LibJS: Add Boolean constructor object
2020-04-07 08:41:25 +02:00