1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

LibJS: More Interpreter::global_object() removal

Also let's settle on calling the operation of fetching the "this" value
from the Interpreter and converting it to a specific Object pointer
typed_this() since consistency is nice.
This commit is contained in:
Andreas Kling 2020-06-20 16:25:12 +02:00
parent a9e4babdaf
commit cd14ebb11f
7 changed files with 55 additions and 55 deletions

View file

@ -30,8 +30,6 @@
namespace JS {
Array* array_from(Interpreter&, GlobalObject&);
class Array final : public Object {
public:
static Array* create(GlobalObject&);
@ -39,6 +37,8 @@ public:
explicit Array(Object& prototype);
virtual ~Array() override;
static Array* typed_this(Interpreter&, GlobalObject&);
private:
virtual const char* class_name() const override { return "Array"; }
virtual bool is_array() const override { return true; }