Fixes for ecma 2 - add context to regexp init.
git-svn-id: svn://10.0.0.236/trunk@44411 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
32c00a9325
commit
62abb35e5e
@ -34,9 +34,9 @@ public class RegExpImpl implements RegExpProxy {
|
||||
return obj instanceof NativeRegExp;
|
||||
}
|
||||
|
||||
public Object newRegExp(Scriptable scope, String source, String global)
|
||||
public Object newRegExp(Context cx, Scriptable scope, String source, String global)
|
||||
{
|
||||
return new NativeRegExp(scope, source, global);
|
||||
return new NativeRegExp(cx, scope, source, global);
|
||||
}
|
||||
|
||||
public Object executeRegExp(Object regExp, Scriptable scopeObj,
|
||||
@ -151,7 +151,7 @@ public class RegExpImpl implements RegExpProxy {
|
||||
opt = null;
|
||||
}
|
||||
Scriptable scope = ScriptableObject.getTopLevelScope(funObj);
|
||||
re = new NativeRegExp(scope, src, opt);
|
||||
re = new NativeRegExp(cx, scope, src, opt);
|
||||
}
|
||||
data.regexp = re;
|
||||
|
||||
|
||||
@ -34,9 +34,9 @@ public class RegExpImpl implements RegExpProxy {
|
||||
return obj instanceof NativeRegExp;
|
||||
}
|
||||
|
||||
public Object newRegExp(Scriptable scope, String source, String global)
|
||||
public Object newRegExp(Context cx, Scriptable scope, String source, String global)
|
||||
{
|
||||
return new NativeRegExp(scope, source, global);
|
||||
return new NativeRegExp(cx, scope, source, global);
|
||||
}
|
||||
|
||||
public Object executeRegExp(Object regExp, Scriptable scopeObj,
|
||||
@ -151,7 +151,7 @@ public class RegExpImpl implements RegExpProxy {
|
||||
opt = null;
|
||||
}
|
||||
Scriptable scope = ScriptableObject.getTopLevelScope(funObj);
|
||||
re = new NativeRegExp(scope, src, opt);
|
||||
re = new NativeRegExp(cx, scope, src, opt);
|
||||
}
|
||||
data.regexp = re;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user