Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 619fb778ecd637d7f1a960460644c6550d7353b6..be05866a52f8bf7fb8ed4012a7f85a612e1e33df 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5813,7 +5813,7 @@ bool Script::HasValidSource() { |
void SharedFunctionInfo::DontAdaptArguments() { |
- DCHECK(code()->kind() == Code::BUILTIN); |
+ DCHECK(code()->kind() == Code::BUILTIN || code()->kind() == Code::STUB); |
set_internal_formal_parameter_count(kDontAdaptArgumentsSentinel); |
} |