Index: src/runtime/runtime-forin.cc |
diff --git a/src/runtime/runtime-forin.cc b/src/runtime/runtime-forin.cc |
index ecd55d172ae614318a7feb441f317616c8c49c2c..ff6804c8fb6527ee7f9624a7e16ebd9e2c588cea 100644 |
--- a/src/runtime/runtime-forin.cc |
+++ b/src/runtime/runtime-forin.cc |
@@ -28,7 +28,7 @@ RUNTIME_FUNCTION(Runtime_ForInFilter) { |
CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
// TODO(turbofan): Fast case for array indices. |
Handle<Name> name; |
- if (!Runtime::ToName(isolate, key).ToHandle(&name)) { |
+ if (!Object::ToName(isolate, key).ToHandle(&name)) { |
return isolate->heap()->exception(); |
} |
Maybe<bool> result = JSReceiver::HasProperty(receiver, name); |
@@ -53,7 +53,7 @@ RUNTIME_FUNCTION(Runtime_ForInNext) { |
} |
// TODO(turbofan): Fast case for array indices. |
Handle<Name> name; |
- if (!Runtime::ToName(isolate, key).ToHandle(&name)) { |
+ if (!Object::ToName(isolate, key).ToHandle(&name)) { |
return isolate->heap()->exception(); |
} |
Maybe<bool> result = JSReceiver::HasProperty(receiver, name); |