anchor.diff:      for (int i = 0; i < length; i++) {
         // TODO(22407): Improve bounds check elimination to allow this JS code to
         // be replaced by indexing.
  -      var element = JS('', '#[#]', this, i);
  +      var element = JS<E>('', '#[#]', this, i);
         if (test(element)) {
           if (matchFound) {
             throw IterableElementError.tooMany();
  
positive.code:     for (int i = 0; i < end; i++) {
        // TODO(22407): Improve bounds check elimination to allow this JS code to
        // be replaced by indexing.
        var element = JS('', '#[#]', this, i);
        if (!test(element)) return false;
        if (this.length != end) throw new ConcurrentModificationError(this);
      }
  
negative.code:   E removeLast() {
      checkGrowable('removeLast');
      if (length == 0) throw diagnoseIndexError(this, -1);
      return JS('', r'#.pop()', this);
    }
  
    bool remove(Object element) {
      checkGrowable('remove');
      for (int i = 0; i < this.length; i++) {
        if (this[i] == element) {
          JS('', r'#.splice(#, 1)', this, i);
          return true;
        }
      }
  