Index: src/builtins/builtins-utils.h |
diff --git a/src/builtins/builtins-utils.h b/src/builtins/builtins-utils.h |
index 3a458a0f710bf522dfc4565ff4a6af0d23e9fd7b..be689ac03866d784ce4eaae0572578e87034fb75 100644 |
--- a/src/builtins/builtins-utils.h |
+++ b/src/builtins/builtins-utils.h |
@@ -145,8 +145,7 @@ class BuiltinArguments : public Arguments { |
// or converts the receiver to a String otherwise and assigns it to a new var |
// with the given {name}. |
#define TO_THIS_STRING(name, method) \ |
- if (args.receiver()->IsNull(isolate) || \ |
- args.receiver()->IsUndefined(isolate)) { \ |
+ if (args.receiver()->IsNullOrUndefined(isolate)) { \ |
THROW_NEW_ERROR_RETURN_FAILURE( \ |
isolate, \ |
NewTypeError(MessageTemplate::kCalledOnNullOrUndefined, \ |