Commit a1c66099 authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[parser] Propagate stack overflow from the reindexer

Bug: chromium:1178720
Change-Id: I0431f6d44217019b2370c07d2d11dd086abbcc9f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2831874
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Auto-Submit: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74014}
parent bbc32bd2
......@@ -978,6 +978,10 @@ FunctionLiteral* Parser::DoParseFunction(Isolate* isolate, ParseInfo* info,
if (p->initializer() != nullptr) {
reindexer.Reindex(p->initializer());
}
if (reindexer.HasStackOverflow()) {
set_stack_overflow();
return nullptr;
}
}
ResetFunctionLiteralId();
SkipFunctionLiterals(function_literal_id - 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment