Index: src/regexp.js |
diff --git a/src/regexp.js b/src/regexp.js |
index 9f89a6a1ac20863b98d5165003277776af7de7c3..9f5056bc5371807b7c6695b2e48276e101fea9bb 100644 |
--- a/src/regexp.js |
+++ b/src/regexp.js |
@@ -55,8 +55,8 @@ |
pattern = pattern.source; |
} |
- pattern = IS_UNDEFINED(pattern) ? '' : ToString(pattern); |
- flags = IS_UNDEFINED(flags) ? '' : ToString(flags); |
+ pattern = IS_UNDEFINED(pattern) ? '' : $toString(pattern); |
+ flags = IS_UNDEFINED(flags) ? '' : $toString(flags); |
%RegExpInitializeAndCompile(object, pattern, flags); |
} |
@@ -381,7 +381,7 @@ |
return IS_UNDEFINED(regExpInput) ? "" : regExpInput; |
}; |
var RegExpSetInput = function(string) { |
- LAST_INPUT($regexpLastMatchInfo) = ToString(string); |
+ LAST_INPUT($regexpLastMatchInfo) = $toString(string); |
}; |
%OptimizeObjectForAddingMultipleProperties(GlobalRegExp, 22); |