| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index ee3525ac6be2340155d222c6c5b83c12f14aeb1e..d15bc9873763fc28f93339c18653a0107f980b4f 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -597,8 +597,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->NewFixedArray(2);
|
| + 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);
|
|
|
|
|