diff options
Diffstat (limited to 'test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js')
-rw-r--r-- | test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js index 16c78fe31..c69d12f42 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js @@ -11,7 +11,6 @@ features: [generators] ---*/ var unreachable = 0; - function* g() { try { yield 1; @@ -48,9 +47,7 @@ result = iter.throw(new Test262Error()); assert.sameValue(result.value, 4, 'Fourth result `value`'); assert.sameValue(result.done, false, 'Fourth result `done` flag'); -assert.throws(Test262Error, function() { - iter.next(); -}); +assert.throws(Test262Error, function() { iter.next(); }); assert.sameValue( unreachable, |