| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 6131a764b7ef800e15db722061504c1243cc5e12..72fbf1282e5b9716b5cbb4309551fcc2a246ec97 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(),
|
|
|