mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* add new test case * opt: conditionally apply the flatten transform Only apply the flatten transform when the do expression contains Break/Continue/Return. This enables us to optimize the output since we don't have to memoize intermediate results. * update test outputs * remove unreachable code variable declaration within for in/of can not have initializer. * update test case to cover spread element * add more test cases for early exit scenario * make node 6 happy * revert complex variable declaration removal
3 lines
165 B
JavaScript
3 lines
165 B
JavaScript
const v1 = (effects.push(1), true) ? (effects.push(2), 2) : (effects.push(3), 3);
|
|
const v2 = (effects.push(4), false) ? (effects.push(5), 2) : (effects.push(6), 3);
|