1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LibWeb: Use JS_DECLARE_NATIVE_FUNCTION for WebAssembly accessors

This commit is contained in:
Linus Groh 2021-07-05 12:43:24 +01:00
parent b5da876817
commit 83f3f396ad
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ public:
virtual void initialize(JS::GlobalObject&) override; virtual void initialize(JS::GlobalObject&) override;
private: private:
JS_DECLARE_NATIVE_GETTER(exports_getter); JS_DECLARE_NATIVE_FUNCTION(exports_getter);
static JS::Handle<WebAssemblyInstancePrototype> s_instance; static JS::Handle<WebAssemblyInstancePrototype> s_instance;
}; };

View file

@ -28,7 +28,7 @@ public:
private: private:
JS_DECLARE_NATIVE_FUNCTION(grow); JS_DECLARE_NATIVE_FUNCTION(grow);
JS_DECLARE_NATIVE_GETTER(buffer_getter); JS_DECLARE_NATIVE_FUNCTION(buffer_getter);
}; };
} }