fixed bug related to removal of JS.call(JS[])
[org.ibex.js.git] / src / org / ibex / js / JSRegexp.java
index 25b890f..e7e35f7 100644 (file)
@@ -223,7 +223,7 @@ public class JSRegexp extends JS.Immutable {
                 args[args.length - 1] = JSU.S(s);
 
                 // note: can't perform pausing operations in here
                 args[args.length - 1] = JSU.S(s);
 
                 // note: can't perform pausing operations in here
-                sb.append(JSU.toString(replaceFunc.call(args)));
+                sb.append(JSU.toString(replaceFunc.call(null, args)));
 
             } else {
                 sb.append(mySubstitute(match,replaceString,s));
 
             } else {
                 sb.append(mySubstitute(match,replaceString,s));