Commit 67794825 authored by rmcilroy's avatar rmcilroy Committed by Commit bot

Fix CompilerDispatcherJobTest::CompileFailureToFinalize on local runs.

BUG=

Review-Url: https://codereview.chromium.org/2276343003
Cr-Commit-Position: refs/heads/master@{#38909}
parent 32422eff
......@@ -215,13 +215,13 @@ TEST_F(CompilerDispatcherJobTest, CompileFailureToPrepare) {
TEST_F(CompilerDispatcherJobTest, CompileFailureToFinalize) {
std::string raw_script("() { var a = ");
for (int i = 0; i < 2000; i++) {
for (int i = 0; i < 1000; i++) {
raw_script += "'x' + ";
}
raw_script += " 'x'; }";
ScriptResource script(raw_script.c_str(), strlen(raw_script.c_str()));
std::unique_ptr<CompilerDispatcherJob> job(new CompilerDispatcherJob(
i_isolate(), CreateFunction(i_isolate(), &script), 100));
i_isolate(), CreateFunction(i_isolate(), &script), 50));
job->PrepareToParseOnMainThread();
job->Parse();
......
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