enhance side_effects (#3410)

This commit is contained in:
Alex Lam S.L
2019-05-14 05:26:40 +08:00
committed by GitHub
parent 2e4fbdeb08
commit d538a73250
3 changed files with 62 additions and 11 deletions

View File

@@ -673,3 +673,19 @@ issue_3371: {
}
expect_stdout: "PASS"
}
step: {
options = {
loops: true,
side_effects: true,
}
input: {
for (var i = 0; i < 42; "foo", i++, "bar");
console.log(i);
}
expect: {
for (var i = 0; i < 42; i++);
console.log(i);
}
expect_stdout: "42"
}