| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 71f5632be3b137f8788f4a303dd251e354973363..52b73af684de28c1207aef21ec8b574e7c7aaf35 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -3532,7 +3532,7 @@ static i::MaybeHandle<i::Object> DefineObjectProperty(
|
|
|
| i::Handle<i::Name> name;
|
| ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, name,
|
| - i::Runtime::ToName(isolate, key),
|
| + i::Object::ToName(isolate, key),
|
| i::MaybeHandle<i::Object>());
|
|
|
| return i::JSObject::DefinePropertyOrElementIgnoreAttributes(js_object, name,
|
| @@ -3856,7 +3856,7 @@ Maybe<bool> v8::Object::Has(Local<Context> context, Local<Value> key) {
|
| } else {
|
| // Convert the key to a name - possibly by calling back into JavaScript.
|
| i::Handle<i::Name> name;
|
| - if (i::Runtime::ToName(isolate, key_obj).ToHandle(&name)) {
|
| + if (i::Object::ToName(isolate, key_obj).ToHandle(&name)) {
|
| maybe = i::JSReceiver::HasProperty(self, name);
|
| }
|
| }
|
|
|