Index: src/builtins/builtins-array.cc |
diff --git a/src/builtins/builtins-array.cc b/src/builtins/builtins-array.cc |
index 22953106608b23822d16ebd23840d52a343d4e45..ad0e9150776d1887816d97c426e48907be058dee 100644 |
--- a/src/builtins/builtins-array.cc |
+++ b/src/builtins/builtins-array.cc |
@@ -33,7 +33,7 @@ inline bool ClampedToInteger(Isolate* isolate, Object* object, int* out) { |
*out = static_cast<int>(value); |
} |
return true; |
- } else if (object->IsUndefined(isolate) || object->IsNull(isolate)) { |
+ } else if (object->IsNullOrUndefined(isolate)) { |
*out = 0; |
return true; |
} else if (object->IsBoolean()) { |
@@ -1343,7 +1343,7 @@ BUILTIN(ArrayConcat) { |
Handle<Object> receiver = args.receiver(); |
// TODO(bmeurer): Do we really care about the exact exception message here? |
- if (receiver->IsNull(isolate) || receiver->IsUndefined(isolate)) { |
+ if (receiver->IsNullOrUndefined(isolate)) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
isolate, NewTypeError(MessageTemplate::kCalledOnNullOrUndefined, |
isolate->factory()->NewStringFromAsciiChecked( |