Lines Matching defs:mustThrow
32 function mustThrow (str) {
47 mustThrow ("[...5]");
48 mustThrow ("[...5, 'foo', 'bar']");
49 mustThrow ("[...{}]");
50 mustThrow ("[...{ get [Symbol.iterator] () { throw new TypeError } }]");
51 mustThrow ("[...{ [Symbol.iterator] () {} }, 'foo']");
52 mustThrow ("[...{ [Symbol.iterator] () { return {} } }]");
53 mustThrow ("[...{ [Symbol.iterator] () { return { next: 5 } } }]");
54 mustThrow ("[...{ [Symbol.iterator] () { return { next: 5 } } }], 'foo'");
55 mustThrow ("[...{ [Symbol.iterator] () { return { get next() { throw new TypeError } } } }]");
56 mustThrow ("[...{ [Symbol.iterator] () { return { next () { } } } }]");
57 mustThrow ("[...{ [Symbol.iterator] () { return { next () { } } } }, 'foo']");
58 mustThrow ("[...{ [Symbol.iterator] () { return { next () { return { get value () { throw new TypeError } } } } } } ]");
59 mustThrow ("[...{ [Symbol.iterator] () { return { next () { return { get done () { throw new TypeError } } } } } } ]");