X-Git-Url: http://git.megacz.com/?p=org.ibex.js.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJSRegexp.java;h=e7e35f7f96655767e4b43eb6361578bc8498c88d;hp=25b890f39c517132160ef665cb94419bb6128a65;hb=f63da7aeac2f942be41aefde91002d14117a8573;hpb=a9ba7fb6a010f903c2021f647561aab7244b6138 diff --git a/src/org/ibex/js/JSRegexp.java b/src/org/ibex/js/JSRegexp.java index 25b890f..e7e35f7 100644 --- a/src/org/ibex/js/JSRegexp.java +++ b/src/org/ibex/js/JSRegexp.java @@ -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 - sb.append(JSU.toString(replaceFunc.call(args))); + sb.append(JSU.toString(replaceFunc.call(null, args))); } else { sb.append(mySubstitute(match,replaceString,s));