summaryrefslogtreecommitdiff
path: root/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/GeneratorPrototype/throw/from-state-completed.js')
-rw-r--r--test/built-ins/GeneratorPrototype/throw/from-state-completed.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
index 209ab9fed..3d8e6cbf5 100644
--- a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
+++ b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
@@ -9,16 +9,13 @@ features: [generators]
---*/
function E() {}
-
function* G() {}
var iter;
iter = G();
iter.next();
-assert.throws(E, function() {
- iter.throw(new E());
-});
+assert.throws(E, function() { iter.throw(new E()); });
var result = iter.next();