blob: 16f2bfe02187c83cd16b19eeb3991d143e8bff98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
// this = null or undefined should not throw
var result = Tuple.from.call(null, #[]);
assertEq(result, #[]);
result = Tuple.from.call(undefined, #[]);
assertEq(result, #[]);
result = Tuple.from.call({}, #[]);
assertEq(result, #[]);
result = Tuple.from.call(5, #[]);
assertEq(result, #[]);
reportCompare(0, 0);
|