blob: 7c16e988babeb720f7b88b98101814e02fe09305 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
/* 9. Let len be ? LengthOfArrayLike(arrayLike). */
var arrayLike = {};
Object.defineProperty(arrayLike, "length", {
get: function() {
throw new SyntaxError();
}
});
assertThrowsInstanceOf(function() {
Tuple.from(arrayLike);
}, SyntaxError, "items.length throws");
reportCompare(0, 0);
|