mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 10:25:07 +00:00

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. :^)
19 lines
353 B
C++
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&);
|
|
};
|
|
|
|
}
|