comparison: js/src/jit-test/tests/generators/throw-on-finished.js
js/src/jit-test/tests/generators/throw-on-finished.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
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); |