blob: 0cf37ad46c9f41d5b99d2882fa6ede862cf23e1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
// Test that objects (in this case, closures) containing Tuples are traced properly
function foo() {
var tup = #[1];
(() => assertEq(tup, #[1]))();
}
let n = 1000;
for (i = 0; i < n; i++) {
foo();
}
if (typeof reportCompare === "function") reportCompare(0, 0);
|