| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 63ba0dc6699eb0fe96eff6c32f3e5591e249d576..c38e9da4fb55450679d6351db91c1cb0827b05a4 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -563,10 +563,10 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) {
|
| Handle<String> source = factory->NewStringFromStaticChars("() {}");
|
| Handle<Script> script = factory->NewScript(source);
|
| script->set_type(Smi::FromInt(Script::TYPE_NATIVE));
|
| - empty_function->shared()->set_script(*script);
|
| empty_function->shared()->set_start_position(0);
|
| empty_function->shared()->set_end_position(source->length());
|
| empty_function->shared()->DontAdaptArguments();
|
| + SharedFunctionInfo::SetScript(handle(empty_function->shared()), script);
|
|
|
| // Set prototypes for the function maps.
|
| Handle<Map> sloppy_function_map(native_context()->sloppy_function_map(),
|
|
|