Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index ad028007d043fabd2e071f8d76b8a85ea1fc23e7..da718305ac77e9f888063671fa6f25e8e399f339 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -7013,7 +7013,7 @@ Maybe<bool> JSProxy::DefineOwnProperty(Isolate* isolate, Handle<JSProxy> proxy, |
ShouldThrow should_throw) { |
STACK_CHECK(Nothing<bool>()); |
if (key->IsSymbol() && Handle<Symbol>::cast(key)->IsPrivate()) { |
- return AddPrivateProperty(isolate, proxy, Handle<Symbol>::cast(key), desc, |
+ return SetPrivateProperty(isolate, proxy, Handle<Symbol>::cast(key), desc, |
should_throw); |
} |
Handle<String> trap_name = isolate->factory()->defineProperty_string(); |
@@ -7119,7 +7119,7 @@ Maybe<bool> JSProxy::DefineOwnProperty(Isolate* isolate, Handle<JSProxy> proxy, |
// static |
-Maybe<bool> JSProxy::AddPrivateProperty(Isolate* isolate, Handle<JSProxy> proxy, |
+Maybe<bool> JSProxy::SetPrivateProperty(Isolate* isolate, Handle<JSProxy> proxy, |
Handle<Symbol> private_name, |
PropertyDescriptor* desc, |
ShouldThrow should_throw) { |