1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 19:05:07 +00:00
serenity/Libraries/LibJS/GlobalObject.h
Andreas Kling 9f38f4dbfb LibJS: Add Object::put_native_function() for convenience
This makes it a little bit nicer to add native function properties
to JavaScript objects.

Thanks to Sergey for suggesting it! :^)
2020-03-13 11:08:16 +01:00

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"; }
};
}