Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index b2259fe9428a0d100b5399bd62a3922e72dff244..7375c849f7c42b64a15a41936938d9697105cff2 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -589,8 +589,11 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) { |
Handle<String> source = factory->NewStringFromStaticChars("() {}"); |
Handle<Script> script = factory->NewScript(source); |
script->set_type(Script::TYPE_NATIVE); |
+ Handle<FixedArray> infos = factory->NewFixedArrayWithSmis(2, 0); |
+ script->set_shared_function_infos(*infos); |
empty_function->shared()->set_start_position(0); |
empty_function->shared()->set_end_position(source->length()); |
+ empty_function->shared()->set_function_literal_id(1); |
empty_function->shared()->DontAdaptArguments(); |
SharedFunctionInfo::SetScript(handle(empty_function->shared()), script); |