The current output of ```js [...a, ...b] ``` is ```js [...a, , ...b] ``` because flow parses it as ``` ArrayExpression(SpreadExpression, null, SpreadExpression) ``` This is a bug in the flow parser. Until it gets fixed, we can workaround it by deleting the `null` after a `SpreadExpression`.
3 lines
66 B
JavaScript
3 lines
66 B
JavaScript
run_spec(__dirname);
|
|
run_spec(__dirname, {useFlowParser: false});
|