mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 19:05:07 +00:00

This makes it a little bit nicer to add native function properties to JavaScript objects. Thanks to Sergey for suggesting it! :^)
16 lines
270 B
C++
16 lines
270 B
C++
#pragma once
|
|
|
|
#include <LibJS/Object.h>
|
|
|
|
namespace JS {
|
|
|
|
class GlobalObject final : public Object {
|
|
public:
|
|
explicit GlobalObject();
|
|
virtual ~GlobalObject() override;
|
|
|
|
private:
|
|
virtual const char* class_name() const override { return "GlobalObject"; }
|
|
};
|
|
|
|
}
|