1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:38:11 +00:00

LibJS: Remove a bunch of unnecessary uses of Cell::interpreter()

We'll want to get rid of all uses of this, to free up the engine from
the old assumption that there's always an Interpreter available.
This commit is contained in:
Andreas Kling 2020-09-27 20:07:25 +02:00
parent 591b7b7031
commit 063acda76e
9 changed files with 13 additions and 21 deletions

View file

@ -25,7 +25,6 @@
*/
#include <AK/Function.h>
#include <LibJS/Interpreter.h>
#include <LibJS/Runtime/Array.h>
#include <LibJS/Runtime/ArrayPrototype.h>
#include <LibJS/Runtime/Error.h>
@ -35,8 +34,7 @@ namespace JS {
Array* Array::create(GlobalObject& global_object)
{
auto& interpreter = global_object.interpreter();
return interpreter.heap().allocate<Array>(global_object, *global_object.array_prototype());
return global_object.heap().allocate<Array>(global_object, *global_object.array_prototype());
}
Array::Array(Object& prototype)