ladybird/Libraries/LibJS/Runtime/GlobalObject.h
Andreas Kling d062d7baa7 LibWeb+LibJS: Move DOM Window object to dedicated classes
LibWeb now creates a WindowObject which inherits from GlobalObject.
Allocation of the global object is moved out of the Interpreter ctor
to allow for specialized construction.

The existing Window interfaces are moved to WindowObject with their
implementation code in the new Window class.
2020-04-01 18:57:00 +02:00

19 lines
347 B
C++

#pragma once
#include <LibJS/Runtime/Object.h>
namespace JS {
class GlobalObject : public Object {
public:
explicit GlobalObject();
virtual ~GlobalObject() override;
private:
virtual const char* class_name() const override { return "GlobalObject"; }
static Value gc(Interpreter&);
static Value is_nan(Interpreter&);
};
}