| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index f0017f763a7019146c72903efabb0a5d56f6aab3..ef83f447b7d7939a7d53b68cd07416f9e3699060 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1586,6 +1586,10 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| Builtins::kStringPrototypeLocaleCompare, 1, true);
|
| SimpleInstallFunction(prototype, "normalize",
|
| Builtins::kStringPrototypeNormalize, 0, false);
|
| + SimpleInstallFunction(prototype, "split", Builtins::kStringPrototypeSplit,
|
| + 2, true);
|
| + SimpleInstallFunction(prototype, "replace",
|
| + Builtins::kStringPrototypeReplace, 2, true);
|
| SimpleInstallFunction(prototype, "substr", Builtins::kStringPrototypeSubstr,
|
| 2, true);
|
| SimpleInstallFunction(prototype, "substring",
|
| @@ -3795,7 +3799,7 @@ bool Genesis::InstallNatives(GlobalContextType context_type) {
|
| DCHECK(JSObject::cast(
|
| string_function->initial_map()->prototype())->HasFastProperties());
|
| native_context()->set_string_function_prototype_map(
|
| - HeapObject::cast(string_function->initial_map()->prototype())->map());
|
| + HeapObject::cast(string_function->map()->prototype())->map());
|
|
|
| Handle<JSGlobalObject> global_object =
|
| handle(native_context()->global_object());
|
|
|