( self: unknown[], method: keyof Array<any>, args: unknown[] = [], )
| 359 | // instrument length-altering mutation methods to avoid length being tracked |
| 360 | // which leads to infinite loops in some cases (#2137) |
| 361 | function noTracking( |
| 362 | self: unknown[], |
| 363 | method: keyof Array<any>, |
| 364 | args: unknown[] = [], |
| 365 | ) { |
| 366 | pauseTracking() |
| 367 | startBatch() |
| 368 | const res = (toRaw(self) as any)[method].apply(self, args) |
| 369 | endBatch() |
| 370 | resetTracking() |
| 371 | return res |
| 372 | } |
no test coverage detected