diff options
Diffstat (limited to 'test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js')
-rw-r--r-- | test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js index bfd3086c7..bc2707e5c 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; unreachable += 1; @@ -31,7 +32,9 @@ assert.sameValue( unreachable, 0, 'statement following `yield` not executed (paused at yield)' ); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, |