Lines Matching defs:thisArg

1519      * ECMA 15.4.4.16 Array.prototype.every ( callbackfn [ , thisArg ] )
1523 * @param thisArg this argument
1527 public static boolean every(final Object self, final Object callbackfn, final Object thisArg) {
1528 return applyEvery(Global.toObject(self), callbackfn, thisArg);
1531 private static boolean applyEvery(final Object self, final Object callbackfn, final Object thisArg) {
1532 return new IteratorAction<Boolean>(Global.toObject(self), callbackfn, thisArg, true) {
1537 return result = (boolean)everyInvoker.invokeExact(callbackfn, thisArg, val, i, self);
1543 * ECMA 15.4.4.17 Array.prototype.some ( callbackfn [ , thisArg ] )
1547 * @param thisArg this argument
1551 public static boolean some(final Object self, final Object callbackfn, final Object thisArg) {
1552 return new IteratorAction<Boolean>(Global.toObject(self), callbackfn, thisArg, false) {
1557 return !(result = (boolean)someInvoker.invokeExact(callbackfn, thisArg, val, i, self));
1563 * ECMA 15.4.4.18 Array.prototype.forEach ( callbackfn [ , thisArg ] )
1567 * @param thisArg this argument
1571 public static Object forEach(final Object self, final Object callbackfn, final Object thisArg) {
1572 return new IteratorAction<Object>(Global.toObject(self), callbackfn, thisArg, ScriptRuntime.UNDEFINED) {
1577 forEachInvoker.invokeExact(callbackfn, thisArg, val, i, self);
1584 * ECMA 15.4.4.19 Array.prototype.map ( callbackfn [ , thisArg ] )
1588 * @param thisArg this argument
1592 public static NativeArray map(final Object self, final Object callbackfn, final Object thisArg) {
1593 return new IteratorAction<NativeArray>(Global.toObject(self), callbackfn, thisArg, null) {
1598 final Object r = mapInvoker.invokeExact(callbackfn, thisArg, val, i, self);
1613 * ECMA 15.4.4.20 Array.prototype.filter ( callbackfn [ , thisArg ] )
1617 * @param thisArg this argument
1621 public static NativeArray filter(final Object self, final Object callbackfn, final Object thisArg) {
1622 return new IteratorAction<NativeArray>(Global.toObject(self), callbackfn, thisArg, new NativeArray()) {
1628 if ((boolean)filterInvoker.invokeExact(callbackfn, thisArg, val, i, self)) {