@Override public boolean has(int index, Scriptable start) { if (0 <= index && index < args.length) { if (args[index] != NOT_FOUND) { return true; } } return super.has(index, start); }
public boolean has(int index, Scriptable start) { if (0 <= index && index < args.length) { if (args[index] != NOT_FOUND) { return true; } } return super.has(index, start); }
public boolean has(int index, Scriptable start) { if (dense != null && 0 <= index && index < dense.length) return dense[index] != NOT_FOUND; return super.has(index, start); }
@Override public boolean has(int index, Scriptable start) { if (arg(index) != NOT_FOUND) { return true; } return super.has(index, start); }
@Override public boolean has(String name, Scriptable start) { return super.has(name, start) || getPackageProperty(name, start) != NOT_FOUND; }
@Override public boolean has(int index, Scriptable start) { if (arg(index) != NOT_FOUND) { return true; } return super.has(index, start); }
@Override public boolean has(int index, Scriptable start) { if (arg(index) != NOT_FOUND) { return true; } return super.has(index, start); }
@Override public boolean has(int index, Scriptable start) { if (arg(index) != NOT_FOUND) { return true; } return super.has(index, start); }
public boolean has(String name, Scriptable start) { return super.has(name, start) || getPackageProperty(name, start) != NOT_FOUND; }
if (!super.has("arguments", this)) { defineProperty("arguments", new Arguments(this), PERMANENT); for (int i = paramCount; i < paramAndVarCount; ++i) { String name = function.getParamOrVarName(i); if (!super.has(name, this)) { if (function.getParamOrVarConst(i)) defineProperty(name, Undefined.instance, CONST);
if (!super.has("arguments", this)) { defineProperty("arguments", new Arguments(this), PERMANENT); for (int i = paramCount; i < paramAndVarCount; ++i) { String name = function.getParamOrVarName(i); if (!super.has(name, this)) { if (function.getParamOrVarConst(i)) defineProperty(name, Undefined.instance, CONST);
@Override protected ScriptableObject getOwnPropertyDescriptor(Context cx, Object id) { double d = ScriptRuntime.toNumber(id); int index = (int) d; if (d != index) { return super.getOwnPropertyDescriptor(cx, id); } Object value = arg(index); if (value == NOT_FOUND) { return super.getOwnPropertyDescriptor(cx, id); } if (sharedWithActivation(index)) { value = getFromActivation(index); } if (super.has(index, this)) { // the descriptor has been redefined ScriptableObject desc = super.getOwnPropertyDescriptor(cx, id); desc.put("value", desc, value); return desc; } else { Scriptable scope = getParentScope(); if (scope == null) scope = this; return buildDataDescriptor(scope, value, EMPTY); } }
@Override protected ScriptableObject getOwnPropertyDescriptor(Context cx, Object id) { double d = ScriptRuntime.toNumber(id); int index = (int) d; if (d != index) { return super.getOwnPropertyDescriptor(cx, id); } Object value = arg(index); if (value == NOT_FOUND) { return super.getOwnPropertyDescriptor(cx, id); } if (sharedWithActivation(index)) { value = getFromActivation(index); } if (super.has(index, this)) { // the descriptor has been redefined ScriptableObject desc = super.getOwnPropertyDescriptor(cx, id); desc.put("value", desc, value); return desc; } else { Scriptable scope = getParentScope(); if (scope == null) scope = this; return buildDataDescriptor(scope, value, EMPTY); } }
@Override protected ScriptableObject getOwnPropertyDescriptor(Context cx, Object id) { double d = ScriptRuntime.toNumber(id); int index = (int) d; if (d != index) { return super.getOwnPropertyDescriptor(cx, id); } Object value = arg(index); if (value == NOT_FOUND) { return super.getOwnPropertyDescriptor(cx, id); } if (sharedWithActivation(index)) { value = getFromActivation(index); } if (super.has(index, this)) { // the descriptor has been redefined ScriptableObject desc = super.getOwnPropertyDescriptor(cx, id); desc.put("value", desc, value); return desc; } else { Scriptable scope = getParentScope(); if (scope == null) scope = this; return buildDataDescriptor(scope, value, EMPTY); } }
@Override protected ScriptableObject getOwnPropertyDescriptor(Context cx, Object id) { double d = ScriptRuntime.toNumber(id); int index = (int) d; if (d != index) { return super.getOwnPropertyDescriptor(cx, id); } Object value = arg(index); if (value == NOT_FOUND) { return super.getOwnPropertyDescriptor(cx, id); } if (sharedWithActivation(index)) { value = getFromActivation(index); } if (super.has(index, this)) { // the descriptor has been redefined ScriptableObject desc = super.getOwnPropertyDescriptor(cx, id); desc.put("value", desc, value); return desc; } else { Scriptable scope = getParentScope(); if (scope == null) scope = this; return buildDataDescriptor(scope, value, EMPTY); } }