1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 10:25:07 +00:00
serenity/Libraries/LibJS/Runtime/GlobalObject.h
Andreas Kling 56936b97d0 LibJS+LibWeb: Move native JS functions into dedicated member functions
Instead of implementing every native function as a lambda function,
use static member functions instead.

This makes it easier to navigate the code + backtraces look nicer. :^)
2020-03-28 23:10:37 +01:00

19 lines
353 B
C++

#pragma once
#include <LibJS/Runtime/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"; }
static Value gc(Interpreter&);
static Value is_nan(Interpreter&);
};
}