private static final JSFunction regexp = new JSFunction() {
public Object call(Context cx, Scriptable thisObj, Scriptable ctorObj, Object[] args) throws JavaScriptException {
- try { return Context.enter().newObject(org.xwt.util.JSObject.defaultObjects, "Regexp", args);
+ try { return Context.enter().newObject(org.xwt.util.JSObject.defaultObjects, "RegExp", args);
} catch (Exception e) {
if (Log.on) Log.log(this, "Exception in Context.newObject() -- this should never happen");
if (Log.on) Log.log(this, e);