mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 03:49:37 +00:00
Fixes for ecma 2 regexp - adding context to init
This commit is contained in:
parent
0fbdd79655
commit
a59e01d63d
@ -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));
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user