blob: fb1c20a5c8824678d51b4496793b5d56325e7618 (
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 = { length: {} };
arrayLike.length = {
valueOf: function() {
throw new SyntaxError();
}
};
assertThrowsInstanceOf(() => Tuple.from(arrayLike),
SyntaxError, "items has invalid length");
reportCompare(0, 0);
|