Andreas Kling
14047ca432
LibJS: Add a global "Object" constructor
...
This patch adds an "Object" constructor to the global object. The only
function it implements so far is Object.getPrototypeOf().
2020-03-28 17:23:54 +01:00
Andreas Kling
a3d92b1210
LibJS: Implement the "instanceof" operator
...
This operator walks the prototype chain of the RHS value and looks for
a "prototype" property with the same value as the prototype of the LHS.
This is pretty cool. :^)
2020-03-28 16:56:54 +01:00
Andreas Kling
9a78b4af2c
LibJS: Basic NaN support
...
This patch adds js_nan() for constructing a NaN value. You can check
if a Value is NaN with Value::is_nan().
2020-03-27 12:40:22 +01:00
Andreas Kling
d7073b9f3e
LibJS: Add Value::is_array()
2020-03-26 12:02:18 +01:00
Andreas Kling
86642add2f
LibJS: Allow default-constructing a JS::Value (undefined)
2020-03-20 21:56:40 +01:00
Andreas Kling
19452230cd
LibJS: Add "Heap" and "Runtime" subdirectories
...
Let's try to keep LibJS tidy as it expands. :^)
2020-03-16 14:37:19 +01:00