(source, targetOffset)
| 62 | return proxy; |
| 63 | }, |
| 64 | set(source, targetOffset) { |
| 65 | targetOffset ??= 0; |
| 66 | if (2 * (source.length + targetOffset) > array.length) { |
| 67 | // This is the Chrome error message |
| 68 | // Firefox: "invalid or out-of-range index" |
| 69 | throw new RangeError("offset is out of bounds"); |
| 70 | } |
| 71 | for (var i = 0; i < source.length; i++) { |
| 72 | var value = source[i]; |
| 73 | var pair = bigIntToParts(value); |
| 74 | array.set(pair, 2 * (targetOffset + i)); |
| 75 | } |
| 76 | }, |
| 77 | }, |
| 78 | { |
| 79 | get(target, idx, receiver) { |
nothing calls this directly
no test coverage detected