fix tests

This commit is contained in:
alexlamsl
2018-01-21 15:53:32 +08:00
parent 287ec730f7
commit 13accdd745
4 changed files with 15 additions and 49 deletions

View File

@@ -1276,8 +1276,7 @@ issue_2794_1: {
}
expect: {
function foo() {
for (const a of (va = value, doSomething(va))) console.log(a);
var va;
for (const a of doSomething(value)) console.log(a);
}
function doSomething(x) {
return [ x, 2 * x, 3 * x ];
@@ -1326,8 +1325,7 @@ issue_2794_2: {
}
expect: {
function foo() {
for (const n of (o = value, doSomething(o))) console.log(n);
var o;
for (const o of doSomething(value)) console.log(o);
}
function doSomething(o) {
return [ o, 2 * o, 3 * o ];