diff options
Diffstat (limited to 'test/built-ins/GeneratorPrototype/throw/from-state-completed.js')
-rw-r--r-- | test/built-ins/GeneratorPrototype/throw/from-state-completed.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js index 3d8e6cbf5..209ab9fed 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js @@ -9,13 +9,16 @@ 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(); |