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); |
} |