summaryrefslogtreecommitdiff
path: root/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js')
-rw-r--r--test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
index 937004428..176b4cc41 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
yield 1;
try {
@@ -39,9 +38,7 @@ result = iter.next();
assert.sameValue(result.value, exception, 'Third result `value`');
assert.sameValue(result.done, false, 'Third result `done` flag');
-assert.throws(Test262Error, function() {
- iter.throw(new Test262Error());
-});
+assert.throws(Test262Error, function() { iter.throw(new Test262Error()); });
assert.sameValue(
unreachable,