adjustArgDescriptorIndex(index) {
    const len = this.argDescriptors.length;
    if (index >= len && this.argDescriptors[len - 1].restParams) {
      return len - 1;
    }
    return index;
  }
// Adjust the index to take into account rest parameters
Adjust the index to take into account rest parameters
Adjust the index to take into account rest parameters
adjustArgDescriptorIndex(index) {
    const len = this.argDescriptors.length;
    if (index >= len && this.argDescriptors[len - 1].restParams) {
      return len - 1;
    }
    return index;
  }
adjustArgDescriptorIndex ( index ) { const len = this . argDescriptors . length ; if ( index >= len && this . argDescriptors [ len - 1 ] . restParams ) { return len - 1 ; } return index ; }
Adjust the index to take into account rest parameters
Adjust the index to take into account rest parameters