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
Notes: sideshowbarker 2024-07-18 10:23:35 +09:00
2 changed files with 2 additions and 2 deletions

View file

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

View file

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