LibWeb: Use JS_DECLARE_NATIVE_FUNCTION for WebAssembly accessors
This commit is contained in:
parent
b5da876817
commit
83f3f396ad
Notes:
sideshowbarker
2024-07-18 10:23:35 +09:00
2 changed files with 2 additions and 2 deletions
Userland/Libraries/LibWeb/WebAssembly
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ public:
|
|||
|
||||
private:
|
||||
JS_DECLARE_NATIVE_FUNCTION(grow);
|
||||
JS_DECLARE_NATIVE_GETTER(buffer_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(buffer_getter);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue