public Scriptable construct(Context cx, Scriptable scope, Object[] args) { return this.delegate.construct(cx, scope, args); }
public Scriptable construct(Context cx, Scriptable scope, Object[] args) { return this.delegate.construct(cx, scope, args); }
public Scriptable construct(Context cx, Scriptable scope, Object[] args) { return this.delegate.construct(cx, scope, args); }
/** * Operator new. * * See ECMA 11.2.2 */ public static Scriptable newObject(Object fun, Context cx, Scriptable scope, Object[] args) { if (!(fun instanceof Function)) { throw notFunctionError(fun); } Function function = (Function)fun; return function.construct(cx, scope, args); }
/** * Operator new. * * See ECMA 11.2.2 */ public static Scriptable newObject(Object fun, Context cx, Scriptable scope, Object[] args) { if (!(fun instanceof Function)) { throw notFunctionError(fun); } Function function = (Function)fun; return function.construct(cx, scope, args); }
public static Scriptable newObject(Context cx, Scriptable scope, String constructorName, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = getExistingCtor(cx, scope, constructorName); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
static Scriptable newNativeError(Context cx, Scriptable scope, TopLevel.NativeErrors type, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = TopLevel.getNativeErrorCtor(cx, scope, type); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
public static Scriptable newObject(Context cx, Scriptable scope, String constructorName, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = getExistingCtor(cx, scope, constructorName); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
public static Scriptable newBuiltinObject(Context cx, Scriptable scope, TopLevel.Builtins type, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = TopLevel.getBuiltinCtor(cx, scope, type); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
public static Scriptable newObject(Context cx, Scriptable scope, String constructorName, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = getExistingCtor(cx, scope, constructorName); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
public static Scriptable newBuiltinObject(Context cx, Scriptable scope, TopLevel.Builtins type, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = TopLevel.getBuiltinCtor(cx, scope, type); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
@Override public Scriptable construct(Context cx, Scriptable scope, Object[] extraArgs) { if (targetFunction instanceof Function) { return ((Function) targetFunction).construct(cx, scope, concat(boundArgs, extraArgs)); } throw ScriptRuntime.typeError0("msg.not.ctor"); }
public static Scriptable newObject(Context cx, Scriptable scope, String constructorName, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = getExistingCtor(cx, scope, constructorName); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
@Override public Scriptable construct(Context cx, Scriptable scope, Object[] extraArgs) { if (targetFunction instanceof Function) { return ((Function) targetFunction).construct(cx, scope, concat(boundArgs, extraArgs)); } throw ScriptRuntime.typeError0("msg.not.ctor"); }
public static Scriptable newBuiltinObject(Context cx, Scriptable scope, TopLevel.Builtins type, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = TopLevel.getBuiltinCtor(cx, scope, type); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
public static Scriptable newBuiltinObject(Context cx, Scriptable scope, TopLevel.Builtins type, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = TopLevel.getBuiltinCtor(cx, scope, type); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
public static Scriptable newObject(Context cx, Scriptable scope, String constructorName, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = getExistingCtor(cx, scope, constructorName); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
@Override public Scriptable construct(Context cx, Scriptable scope, Object[] extraArgs) { if (targetFunction instanceof Function) { return ((Function) targetFunction).construct(cx, scope, concat(boundArgs, extraArgs)); } throw ScriptRuntime.typeError0("msg.not.ctor"); }
public static Scriptable newObject(Context cx, Scriptable scope, String constructorName, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = getExistingCtor(cx, scope, constructorName); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(cx, scope, args); }
@Override public Scriptable construct(Context cx, Scriptable scope, Object[] extraArgs) { if (targetFunction instanceof Function) { return ((Function) targetFunction).construct(cx, scope, concat(boundArgs, extraArgs)); } throw ScriptRuntime.typeError0("msg.not.ctor"); }