summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/record-tuple/from.js
blob: 1d23517295832d4050e45c09b12cc52f8f955df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| skip-if: !this.hasOwnProperty("Tuple")

gczeal(10); // Run incremental GC in many slices

var c = ["a", "b"];
var t = Tuple.from(c);

for (i = 0; i < 100; i++) {
c = ["a", "b"];
t = Tuple.from(c);
c = null;
gc();
}