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);