diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-05 12:33:08 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-05 12:33:08 +0100 |
commit | b73b6fbd4cc7e506a83e4f62412132e88fe219de (patch) | |
tree | 953a872fd2252a954cac901a4b0e828216ad928c /Userland/Libraries/LibWeb | |
parent | 79d8326370caf535d4f46689c4c1ff1a5ccacbd6 (diff) | |
download | serenity-b73b6fbd4cc7e506a83e4f62412132e88fe219de.zip |
LibWeb: Make WebAssembly.Instance.prototype.exports an accessor property
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.cpp | 4 |
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); |