mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
@@ -36,7 +36,7 @@ namespace JS {
|
||||
Array* Array::create(GlobalObject& global_object)
|
||||
{
|
||||
auto& interpreter = global_object.interpreter();
|
||||
return interpreter.heap().allocate<Array>(*interpreter.array_prototype());
|
||||
return interpreter.heap().allocate<Array>(*global_object.array_prototype());
|
||||
}
|
||||
|
||||
Array::Array(Object& prototype)
|
||||
|
||||
Reference in New Issue
Block a user