summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp
index 13d6b76882..540a691a21 100644
--- a/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp
@@ -82,8 +82,8 @@ JS_DEFINE_NATIVE_FUNCTION(ProxyConstructor::revocable)
revoker->define_property(vm.names.length, Value(0), Attribute::Configurable);
auto* result = Object::create(global_object, global_object.object_prototype());
- result->define_property(vm.names.proxy, proxy);
- result->define_property(vm.names.revoke, revoker);
+ result->create_data_property_or_throw(vm.names.proxy, proxy);
+ result->create_data_property_or_throw(vm.names.revoke, revoker);
return result;
}