Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index 92bf848829203e5fa2be246e2709a68634428899..ad374d22b29b874adfb6b4c4c852cedce14739ff 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -538,7 +538,7 @@ RUNTIME_FUNCTION(Runtime_ArrayIndexOf) { |
// Let O be ? ToObject(this value). |
Handle<Object> receiver_obj = args.at(0); |
- if (receiver_obj->IsNull(isolate) || receiver_obj->IsUndefined(isolate)) { |
+ if (receiver_obj->IsNullOrUndefined(isolate)) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
isolate, NewTypeError(MessageTemplate::kCalledOnNullOrUndefined, |
isolate->factory()->NewStringFromAsciiChecked( |