fix regenerator tests

This commit is contained in:
Sebastian McKenzie 2015-01-29 00:06:12 +11:00
parent 7894f1a079
commit d4debc3c85
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
function* foo(foo = "bar") {
return foo;
function* foo(bar = "bar") {
return bar;
}
assert.deepEqual(foo().next().value, "bar");

View File

@ -1,5 +1,5 @@
function* foo({ foo }) {
return foo;
function* foo({ bar }) {
return bar;
}
assert(foo({ foo: "bar" }).next().value, "bar");
assert(foo({ bar: "bar" }).next().value, "bar");