Home | History | Annotate | Download | only in harmony

Lines Matching refs:Throw

28 function Throw(generator, ...args) {
30 return generator.throw(...args);
40 assertThrowsEquals(() => Throw(g(), "not caught"), "not caught");
45 assertEquals({value: undefined, done: true}, Throw(x, "caught"));
52 assertThrowsEquals(() => Throw(x, "not caught"), "not caught");
70 let g = function*() { try {return 42} finally {Throw(x, 666)} };
87 assertThrowsEquals(() => Throw(x, 43), 43);
91 { // "throw" closes at suspendedStart
93 assertThrowsEquals(() => Throw(x, 666), 666);
96 assertThrowsEquals(() => Throw(x, 44), 44);
104 assertThrowsEquals(() => Throw(x, 666), 666);
115 { // "throw" closes at suspendedYield
118 assertEquals({value: 13, done: true}, Throw(x, 666));
119 assertThrowsEquals(() => Throw(x, 666), 666);
133 assertThrowsEquals(() => Throw(x, 43), 43);
137 { // "throw" closes at suspendedStart
139 assertThrowsEquals(() => Throw(x, 666), 666);
142 assertThrowsEquals(() => Throw(x, 44), 44);
150 assertThrowsEquals(() => Throw(x, 666), 666);
159 assertThrowsEquals(() => Throw(x, 44), 44);
163 { // "throw" closes at suspendedYield
166 assertThrowsEquals(() => Throw(x, 666), 666);
168 assertThrowsEquals(() => Throw(x, 666), 666);
243 assertEquals({value: 43, done: false}, Throw(x, 666));
277 assertEquals({value: 43, done: false}, Throw(x, 666));
321 function* foo() { throw 666; return 42}