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:
rogerl%netscape.com 1999-08-25 01:00:09 +00:00
parent 32c00a9325
commit 62abb35e5e
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;