js/src/jit-test/tests/generators/throw-on-finished.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:bb85f46b8aab
1 load(libdir + "asserts.js");
2
3 function*g(){ };
4 o = g();
5 o.next();
6 function TestException() {};
7 assertThrowsInstanceOf(() => o.throw(new TestException()), TestException);

mercurial