Debian Codegraph @

js/src/jit-test/tests/typedarray/bug1904648.js

raw
1 const TypedArrays = [
2 Int8Array,
3 Uint8Array,
4 Int16Array,
5 Uint16Array,
6 Int32Array,
7 Uint32Array,
8 Uint8ClampedArray,
9 Float16Array,
10 Float32Array,
11 Float64Array,
12 ];
13
14 function test(TA1, TA2) {
15 var ta1 = new TA1(32);
16 var ta2 = new TA2(ta1.buffer);
17 ta1.set(ta2);
18 }
19
20 for (let TA1 of TypedArrays) {
21 for (let TA2 of TypedArrays) {
22 if (TA1.BYTES_PER_ELEMENT <= TA2.BYTES_PER_ELEMENT) {
23 test(TA1, TA2);
24 }
25 }
26 }