comparison: js/src/jit-test/tests/generators/throw-on-finished.js
js/src/jit-test/tests/generators/throw-on-finished.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
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); |