fix output of spread of a sequence (#2268)

fixes #2267
This commit is contained in:
kzc
2017-08-02 12:40:19 -04:00
committed by Alex Lam S.L
parent 4700c14855
commit 2ed3f8db44
2 changed files with 48 additions and 0 deletions

View File

@@ -689,6 +689,7 @@ function OutputStream(options) {
* ==> 20 (side effect, set a := 10 and b := 20) */
|| p instanceof AST_Arrow // x => (x, x)
|| p instanceof AST_DefaultAssign // x => (x = (0, function(){}))
|| p instanceof AST_Expansion // [...(a, b)]
;
});