Commit b1a0dd85 authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[parser] Report stack overflows in Rewriter

Bug: chromium:1079066
Change-Id: Ideb6704ce6ff0754250ba8dda4addf0841330db4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2190418Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67681}
parent 6cd3ebe4
......@@ -408,7 +408,10 @@ base::Optional<VariableProxy*> Rewriter::RewriteBody(
return result_value;
}
if (processor.HasStackOverflow()) return base::nullopt;
if (processor.HasStackOverflow()) {
info->pending_error_handler()->set_stack_overflow();
return base::nullopt;
}
}
return nullptr;
}
......
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