mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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.
This commit is contained in:
@@ -38,9 +38,9 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
Object* Object::create_empty(Interpreter& interpreter, GlobalObject&)
|
||||
Object* Object::create_empty(Interpreter&, GlobalObject& global_object)
|
||||
{
|
||||
return interpreter.heap().allocate<Object>(interpreter.object_prototype());
|
||||
return global_object.heap().allocate<Object>(global_object.object_prototype());
|
||||
}
|
||||
|
||||
Object::Object(Object* prototype)
|
||||
|
||||
Reference in New Issue
Block a user