Index: test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
diff --git a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
index 6f8d364b4576ff6860ea9851ecaef25217461ffd..67eb9e2cef8b362f57e08d5d1c69c838891498f1 100644 |
--- a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
+++ b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
@@ -78,13 +78,15 @@ Handle<SharedFunctionInfo> CreateSharedFunctionInfo( |
source = isolate->factory()->NewStringFromAsciiChecked(test_script); |
} |
Handle<Script> script = isolate->factory()->NewScript(source); |
+ Handle<FixedArray> infos = isolate->factory()->NewFixedArray(3); |
+ script->set_shared_function_infos(*infos); |
Handle<SharedFunctionInfo> shared = isolate->factory()->NewSharedFunctionInfo( |
isolate->factory()->NewStringFromAsciiChecked("f"), |
isolate->builtins()->CompileLazy(), false); |
- SharedFunctionInfo::SetScript(shared, script); |
shared->set_end_position(source->length()); |
shared->set_outer_scope_info(ScopeInfo::Empty(isolate)); |
shared->set_function_literal_id(1); |
+ SharedFunctionInfo::SetScript(shared, script); |
return scope.CloseAndEscape(shared); |
} |