michael@0: load(libdir + "asserts.js"); michael@0: michael@0: function*g(){ }; michael@0: o = g(); michael@0: o.next(); michael@0: function TestException() {}; michael@0: assertThrowsInstanceOf(() => o.throw(new TestException()), TestException);