Age | Commit message (Collapse) | Author |
|
|
|
|
|
The GC heap is really a graph of cells, so "children" didn't quite feel
appropriate here.
|
|
To allow implementing the DOM class hierarchy in JS bindings, this
patch adds an inherits() function that can be used to ask an Object
if it inherits from a specific C++ class (by name).
The necessary overrides are baked into each Object subclass by the
new JS_OBJECT macro, which works similarly to C_OBJECT in LibCore.
Thanks to @Dexesttp for suggesting this approach. :^)
|
|
|
|
|
|
It appears that calling .valueOf() on an objectified primitive's
prototype should return a value after all.
This matches what other engines are doing.
|
|
Let's try to keep LibJS tidy as it expands. :^)
|