blob: 3d0c2a0aaca68e01ad4d0d304ff2f853b2ba9b93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
var array = [2, 4, 0, 16];
var expectedTuple = #[2, 4, undefined, 16];
var obj = {
length: 4,
0: 2,
1: 4,
2: 0,
3: 16
};
delete obj[2];
let t = Tuple.from(obj);
assertEq(t, expectedTuple);
reportCompare(0, 0);
|