Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 6b0b7edd8a80f704318be827993e1d9ead43238d..ffaaf8b1ea43f10d9241b61cd27a1da9d9a6d297 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1149,6 +1149,7 @@ MUST_USE_RESULT static MaybeObject* HandleApiCallHelper( |
result = heap->undefined_value(); |
} else { |
result = *reinterpret_cast<Object**>(*value); |
+ result->VerifyApiCallResultType(); |
} |
RETURN_IF_SCHEDULED_EXCEPTION(isolate); |
@@ -1225,6 +1226,7 @@ MUST_USE_RESULT static MaybeObject* HandleApiCallAsFunctionOrConstructor( |
result = heap->undefined_value(); |
} else { |
result = *reinterpret_cast<Object**>(*value); |
+ result->VerifyApiCallResultType(); |
} |
} |
// Check for exceptions and return result. |