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

Unified Diff: src/js/string.js

Issue 1850643002: Adding %_NewObject intrinsic (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: formatting Created 4 years, 9 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 | « src/js/regexp.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/string.js
diff --git a/src/js/string.js b/src/js/string.js
index 498021381a5181e8420a4940ce5e0e4082301e65..ede5f881604b4ab2abaacba6c7a0a29be5db383e 100644
--- a/src/js/string.js
+++ b/src/js/string.js
@@ -162,7 +162,7 @@ function StringMatchJS(pattern) {
var subject = TO_STRING(this);
// Equivalent to RegExpCreate (ES#sec-regexpcreate)
- var regexp = %NewObject(GlobalRegExp, GlobalRegExp);
+ var regexp = %_NewObject(GlobalRegExp, GlobalRegExp);
RegExpInitialize(regexp, pattern);
return regexp[matchSymbol](subject);
}
@@ -360,7 +360,7 @@ function StringSearch(pattern) {
var subject = TO_STRING(this);
// Equivalent to RegExpCreate (ES#sec-regexpcreate)
- var regexp = %NewObject(GlobalRegExp, GlobalRegExp);
+ var regexp = %_NewObject(GlobalRegExp, GlobalRegExp);
RegExpInitialize(regexp, pattern);
return %_Call(regexp[searchSymbol], regexp, subject);
}
« no previous file with comments | « src/js/regexp.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698