summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-07-05 12:33:08 +0100
committerLinus Groh <mail@linusgroh.de>2021-07-05 12:33:08 +0100
commitb73b6fbd4cc7e506a83e4f62412132e88fe219de (patch)
tree953a872fd2252a954cac901a4b0e828216ad928c
parent79d8326370caf535d4f46689c4c1ff1a5ccacbd6 (diff)
downloadserenity-b73b6fbd4cc7e506a83e4f62412132e88fe219de.zip
LibWeb: Make WebAssembly.Instance.prototype.exports an accessor property
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.cpp
index 19178d4b88..8eaf4e1251 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.cpp
@@ -12,10 +12,10 @@ namespace Web::Bindings {
void WebAssemblyInstancePrototype::initialize(JS::GlobalObject& global_object)
{
Object::initialize(global_object);
- define_native_property("exports", exports_getter, nullptr);
+ define_native_accessor("exports", exports_getter, {});
}
-JS_DEFINE_NATIVE_GETTER(WebAssemblyInstancePrototype::exports_getter)
+JS_DEFINE_NATIVE_FUNCTION(WebAssemblyInstancePrototype::exports_getter)
{
auto this_value = vm.this_value(global_object);
auto this_object = this_value.to_object(global_object);