mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
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.
19 lines
347 B
C++
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&);
|
|
};
|
|
|
|
}
|