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);