summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-07-06 23:52:10 +0300
committerLinus Groh <mail@linusgroh.de>2021-07-07 01:38:10 +0100
commitd57767865882854406fd489cd38bf34bf1216ddd (patch)
treea604104f9b991db4feb1a14286a8140940017116 /Userland
parent531969451044d6ef01780943a77baf5ff5e551e3 (diff)
downloadserenity-d57767865882854406fd489cd38bf34bf1216ddd.zip
LibJS: Add a name property to the proxy revoker anonymous function
As per the specification this should an empty string.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp
index 824b28eb17..94a75405d3 100644
--- a/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ProxyConstructor.cpp
@@ -80,6 +80,7 @@ JS_DEFINE_NATIVE_FUNCTION(ProxyConstructor::revocable)
return js_undefined();
});
revoker->define_direct_property(vm.names.length, Value(0), Attribute::Configurable);
+ revoker->define_direct_property(vm.names.name, js_string(vm, String::empty()), Attribute::Configurable);
auto* result = Object::create(global_object, global_object.object_prototype());
result->create_data_property_or_throw(vm.names.proxy, proxy);