(target, prop, val, receiver)
| 47 | } |
| 48 | |
| 49 | static set(target, prop, val, receiver) { |
| 50 | let ix = Number.parseInt(prop); |
| 51 | if (!Number.isNaN(ix)) { |
| 52 | if (ix >= target._array.length) { |
| 53 | let newArray = new Uint8Array(ix + 1); |
| 54 | newArray.set(target._array); |
| 55 | target._array = newArray; |
| 56 | } |
| 57 | return Reflect.set(target._array, prop, val); |
| 58 | } |
| 59 | return Reflect.set(target, prop, val, receiver); |
| 60 | } |
| 61 | |
| 62 | get length() { |
| 63 | return this._array.length; |
no outgoing calls
no test coverage detected