Fixes for ecma 2 regexp - adding context to init

This commit is contained in:
rogerl%netscape.com 1999-08-25 01:05:42 +00:00
parent 0fbdd79655
commit a59e01d63d
4 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ public class Interpreter extends LabelTable {
Node regexp = (Node) regexps.elementAt(i);
Node left = regexp.getFirstChild();
Node right = regexp.getLastChild();
result[i] = rep.newRegExp(scope, left.getString(),
result[i] = rep.newRegExp(cx, scope, left.getString(),
(left != right) ? right.getString() : null);
regexp.putProp(Node.REGEXP_PROP, new Integer(i));
}

View File

@ -31,7 +31,7 @@ public interface RegExpProxy {
public boolean isRegExp(Object obj);
public Object newRegExp(Scriptable scope, String source, String global);
public Object newRegExp(Context cx, Scriptable scope, String source, String global);
public Object match(Context cx, Scriptable thisObj, Object[] args,
Function funObj)

View File

@ -80,7 +80,7 @@ public class Interpreter extends LabelTable {
Node regexp = (Node) regexps.elementAt(i);
Node left = regexp.getFirstChild();
Node right = regexp.getLastChild();
result[i] = rep.newRegExp(scope, left.getString(),
result[i] = rep.newRegExp(cx, scope, left.getString(),
(left != right) ? right.getString() : null);
regexp.putProp(Node.REGEXP_PROP, new Integer(i));
}

View File

@ -31,7 +31,7 @@ public interface RegExpProxy {
public boolean isRegExp(Object obj);
public Object newRegExp(Scriptable scope, String source, String global);
public Object newRegExp(Context cx, Scriptable scope, String source, String global);
public Object match(Context cx, Scriptable thisObj, Object[] args,
Function funObj)