Created these while experimenting with LibJS. Might as well bring them into the tree and increase our coverage.
11 lines
188 B
JavaScript
11 lines
188 B
JavaScript
// Test that yield inside a finally block saves/restores the exception register.
|
|
|
|
function* f() {
|
|
try {
|
|
yield 1;
|
|
yield 2;
|
|
} finally {
|
|
yield 3;
|
|
}
|
|
}
|
|
f();
|