| Index: src/regexp.js
|
| diff --git a/src/regexp.js b/src/regexp.js
|
| index 6a0e2b5d92c00782d29ef1a78b42d382b10ae55c..d58ca2634bd03f313e1326ca2c5b5542dbb00139 100644
|
| --- a/src/regexp.js
|
| +++ b/src/regexp.js
|
| @@ -80,7 +80,7 @@ function RegExpConstructor(pattern, flags) {
|
| // were called again. In SpiderMonkey, this method returns the regexp object.
|
| // In JSC, it returns undefined. For compatibility with JSC, we match their
|
| // behavior.
|
| -function RegExpCompile(pattern, flags) {
|
| +function RegExpCompileJS(pattern, flags) {
|
| // Both JSC and SpiderMonkey treat a missing pattern argument as the
|
| // empty subject string, and an actual undefined value passed as the
|
| // pattern as the string 'undefined'. Note that JSC is inconsistent
|
| @@ -381,7 +381,7 @@ function SetUpRegExp() {
|
| "exec", RegExpExec,
|
| "test", RegExpTest,
|
| "toString", RegExpToString,
|
| - "compile", RegExpCompile
|
| + "compile", RegExpCompileJS
|
| ));
|
|
|
| // The length of compile is 1 in SpiderMonkey.
|
|
|