(length = 10, type = Uint8Array)
| 164 | })(); |
| 165 | |
| 166 | function createImmutableTypedArray(length = 10, type = Uint8Array) { |
| 167 | const ab = new ArrayBuffer(length * type.BYTES_PER_ELEMENT); |
| 168 | const imm = ab.transferToImmutable(); |
| 169 | return new type(imm); |
| 170 | } |
| 171 | |
| 172 | // 1. Test TypedArray.prototype.copyWithin |
| 173 | (function testCopyWithin() { |
no outgoing calls
no test coverage detected