mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57: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:
parent
a9e4babdaf
commit
cd14ebb11f
7 changed files with 55 additions and 55 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue