fix side_effects on AST_Expansion (#2165)

fixes #2163
This commit is contained in:
Alex Lam S.L
2017-06-27 01:13:00 +08:00
committed by GitHub
parent 26be15f111
commit ad139aa34d
3 changed files with 21 additions and 1 deletions

View File

@@ -1409,3 +1409,20 @@ issue_2136_3: {
expect_stdout: "2"
node_version: ">=6"
}
issue_2163: {
options = {
pure_funcs: [ "pure" ],
side_effects: true,
}
input: {
var c;
/*@__PURE__*/f(...a);
pure(b, ...c);
}
expect: {
var c;
a;
b;
}
}