diff --git a/test/fixtures/transformation/regenerator/destructuring/exec.js b/test/fixtures/transformation/regenerator/destructuring/exec.js index 483a5724c1..74452f773a 100644 --- a/test/fixtures/transformation/regenerator/destructuring/exec.js +++ b/test/fixtures/transformation/regenerator/destructuring/exec.js @@ -5,9 +5,9 @@ function* foo() { assert.equal(foo().next().value, "bar"); -function *foo({ bar = 0 }) { +function* foo2({ bar = 0 }) { return bar; } -assert.equal(foo({ bar: undefined }).next(), 0); -assert.equal(foo({ bar: 3 }).next(), 3); +assert.equal(foo2({ bar: undefined }).next().value, 0); +assert.equal(foo2({ bar: 3 }).next().value, 3);