From 83f3f396add7f17b606cb156b4afe653c4dc8bda Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 5 Jul 2021 12:43:24 +0100 Subject: [PATCH] LibWeb: Use JS_DECLARE_NATIVE_FUNCTION for WebAssembly accessors --- .../LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h | 2 +- .../Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h index d312345a9e..fff25310e1 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h @@ -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 s_instance; }; diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h index bcfbb1e88c..74fd7b0322 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h @@ -28,7 +28,7 @@ public: private: JS_DECLARE_NATIVE_FUNCTION(grow); - JS_DECLARE_NATIVE_GETTER(buffer_getter); + JS_DECLARE_NATIVE_FUNCTION(buffer_getter); }; }