summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-07-05 12:43:24 +0100
committerLinus Groh <mail@linusgroh.de>2021-07-05 12:43:24 +0100
commit83f3f396add7f17b606cb156b4afe653c4dc8bda (patch)
treeb2a622b7d55e9f2b1313e0b0c8035794812df4e1
parentb5da87681792856a3d2e4c66834359eb0e372ae1 (diff)
downloadserenity-83f3f396add7f17b606cb156b4afe653c4dc8bda.zip
LibWeb: Use JS_DECLARE_NATIVE_FUNCTION for WebAssembly accessors
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h2
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h2
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<WebAssemblyInstancePrototype> 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);
};
}