Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 8ae2d3cc8ffe7ed98ac611f9f808c1b8db85a980..487cc3cd9f5ee2a6cdda1fd3e98b216367f11cf1 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1721,6 +1721,13 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
Builtins::kRegExpPrototypeStickyGetter, true); |
SimpleInstallGetter(prototype, factory->unicode_string(), |
Builtins::kRegExpPrototypeUnicodeGetter, true); |
+ |
+ SimpleInstallFunction(prototype, "compile", |
+ Builtins::kRegExpPrototypeCompile, 2, false, |
+ DONT_ENUM); |
+ SimpleInstallFunction(prototype, factory->toString_string(), |
+ Builtins::kRegExpPrototypeToString, 0, false, |
+ DONT_ENUM); |
} |
{ |