summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/throw-on-finished.js
blob: 541e48f1f08c81f257b72c07b189ff4570f91f7b (plain)
1
2
3
4
5
6
7
load(libdir + "asserts.js");

function*g(){ };
o = g();
o.next();
function TestException() {};
assertThrowsInstanceOf(() => o.throw(new TestException()), TestException);