Age | Commit message (Collapse) | Author |
|
|
|
|
|
Let's move towards using references over pointers in LibJS as well.
I had originally steered away from it because that's how I've seen
things done in other engines. But this is not the other engines. :^)
|
|
This adds:
- A global Date object (with `length` property and `now` function)
- The Date constructor (no arguments yet)
- The Date prototype (with `get*` functions)
|
|
Native functions now only get the Interpreter& as an argument. They can
then extract |this| along with any indexed arguments it wants from it.
This forces functions that want |this| to actually deal with calling
interpreter.this_value().to_object(), and dealing with the possibility
of a non-object |this|.
This is still not great but let's keep massaging it forward.
|
|
This patch adds an "Object" constructor to the global object. The only
function it implements so far is Object.getPrototypeOf().
|
|
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. :^)
|
|
This patch adds js_nan() for constructing a NaN value. You can check
if a Value is NaN with Value::is_nan().
|
|
|
|
|
|
Let's try to keep LibJS tidy as it expands. :^)
|