Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: src/bootstrapper.cc

Issue 2441993002: [regexp] Move RegExp.prototype.test to TF (Closed)
Patch Set: Remove unused variables Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 0d55fb101a59a21c4b703c9331f907bb5c97cbdd..c31c48fd660ed4534856e1ca0b93554f8782eb4f 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1809,8 +1809,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
{
Handle<JSFunction> fun = SimpleInstallFunction(
- prototype, "exec", Builtins::kRegExpPrototypeExec, 1, true,
- DONT_ENUM);
+ prototype, factory->exec_string(), Builtins::kRegExpPrototypeExec,
+ 1, true, DONT_ENUM);
native_context()->set_regexp_exec_function(*fun);
}
@@ -1836,7 +1836,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kRegExpPrototypeToString, 0, false,
DONT_ENUM);
SimpleInstallFunction(prototype, "test", Builtins::kRegExpPrototypeTest,
- 1, false, DONT_ENUM);
+ 1, true, DONT_ENUM);
{
Handle<JSFunction> fun = SimpleCreateFunction(
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698