blob: 4c9089bdf2502ce3da0c04398c87e9b789eaae77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Iterating over the argument to Map can throw. The exception is propagated.
load(libdir + "asserts.js");
function* data2() {
yield [{}, "XR22/Z"];
yield [{}, "23D-BN"];
throw "oops";
}
var it = data2();
assertThrowsValue(function () { new Map(it); }, "oops");
|