Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index fa82314f3b0e9c757b3af72e9231a6159f04d7e7..7787eb4614cda0dfc9992e1c7b76d6874e4443b3 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1810,6 +1810,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
#endif // V8_INTL_SUPPORT |
SimpleInstallFunction(prototype, "replace", |
Builtins::kStringPrototypeReplace, 2, true); |
+ SimpleInstallFunction(prototype, "slice", Builtins::kStringPrototypeSlice, |
+ 2, false); |
SimpleInstallFunction(prototype, "split", Builtins::kStringPrototypeSplit, |
2, true); |
SimpleInstallFunction(prototype, "substr", Builtins::kStringPrototypeSubstr, |