@Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { throw typeError0("msg.op.not.allowed"); } @Override
@Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { throw typeError0("msg.op.not.allowed"); } @Override
@Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { throw typeError0("msg.op.not.allowed"); } @Override
@Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { throw typeError0("msg.op.not.allowed"); } @Override
static Object[] getApplyArguments(Context cx, Object arg1) { if (arg1 == null || arg1 == Undefined.instance) { return ScriptRuntime.emptyArgs; } else if (arg1 instanceof NativeArray || arg1 instanceof Arguments) { return cx.getElements((Scriptable) arg1); } else { throw ScriptRuntime.typeError0("msg.arg.isnt.array"); } }
private static Object toPrimitive(Object val) { if (!(val instanceof Scriptable)) { return val; } Scriptable s = (Scriptable)val; Object result = s.getDefaultValue(null); if (result instanceof Scriptable) throw typeError0("msg.bad.default.value"); return result; }
public static Object toPrimitive(Object val, Class<?> typeHint) { if (!(val instanceof Scriptable)) { return val; } Scriptable s = (Scriptable)val; Object result = s.getDefaultValue(typeHint); if (result instanceof Scriptable) throw typeError0("msg.bad.default.value"); return result; }
@Override public boolean hasInstance(Scriptable instance) { if (targetFunction instanceof Function) { return ((Function) targetFunction).hasInstance(instance); } throw ScriptRuntime.typeError0("msg.not.ctor"); }
static Object[] getApplyArguments(Context cx, Object arg1) { if (arg1 == null || arg1 == Undefined.instance) { return ScriptRuntime.emptyArgs; } else if (arg1 instanceof NativeArray || arg1 instanceof Arguments) { return cx.getElements((Scriptable) arg1); } else { throw ScriptRuntime.typeError0("msg.arg.isnt.array"); } }
private static Object toPrimitive(Object val) { if (!(val instanceof Scriptable)) { return val; } Scriptable s = (Scriptable)val; Object result = s.getDefaultValue(null); if (result instanceof Scriptable) throw typeError0("msg.bad.default.value"); return result; }
@Override public boolean hasInstance(Scriptable instance) { if (targetFunction instanceof Function) { return ((Function) targetFunction).hasInstance(instance); } throw ScriptRuntime.typeError0("msg.not.ctor"); }
static Object[] getApplyArguments(Context cx, Object arg1) { if (arg1 == null || arg1 == Undefined.instance) { return ScriptRuntime.emptyArgs; } else if (arg1 instanceof NativeArray || arg1 instanceof Arguments) { return cx.getElements((Scriptable) arg1); } else { throw ScriptRuntime.typeError0("msg.arg.isnt.array"); } }
public static Object toPrimitive(Object val, Class<?> typeHint) { if (!(val instanceof Scriptable)) { return val; } Scriptable s = (Scriptable)val; Object result = s.getDefaultValue(typeHint); if (result instanceof Scriptable) throw typeError0("msg.bad.default.value"); return result; }
@Override public boolean hasInstance(Scriptable instance) { if (targetFunction instanceof Function) { return ((Function) targetFunction).hasInstance(instance); } throw ScriptRuntime.typeError0("msg.not.ctor"); }
static Object[] getApplyArguments(Context cx, Object arg1) { if (arg1 == null || arg1 == Undefined.instance) { return ScriptRuntime.emptyArgs; } else if (arg1 instanceof NativeArray || arg1 instanceof Arguments) { return cx.getElements((Scriptable) arg1); } else { throw ScriptRuntime.typeError0("msg.arg.isnt.array"); } }
@Override public boolean hasInstance(Scriptable instance) { if (targetFunction instanceof Function) { return ((Function) targetFunction).hasInstance(instance); } throw ScriptRuntime.typeError0("msg.not.ctor"); }
@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"); }
@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"); }
@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"); }
@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"); }