summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/StringObject.h
AgeCommit message (Collapse)Author
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling
2021-01-01LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTIAndreas Kling
2020-11-28LibJS: Rename Cell::visit_children() => Cell::visit_edges()Andreas Kling
The GC heap is really a graph of cells, so "children" didn't quite feel appropriate here.
2020-06-21LibJS+LibWeb: Add JS::Object::inherits(class_name)Andreas Kling
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. :^)
2020-04-29LibJS: Make StringObject::primitive_string() return a referenceAndreas Kling
2020-04-18LibJS: Pass prototype to StringObject constructorAndreas Kling
2020-04-10LibJS: Boolean, Number and String prototypes should have values tooAndreas Kling
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-03-16LibJS: Add "Heap" and "Runtime" subdirectoriesAndreas Kling
Let's try to keep LibJS tidy as it expands. :^)