es/minifier: 条件调用合并将常见参数效果移动到测试之前
作者: kdy1创建于 2026年9月5日更新于 2026年9月9日
标签C-bug
Describe the bug The guard tests whether the condition has side effects and then guards common argument purity only in that case. A pure read of x can still be affected by an earlier common argument side(), which assigns x=false. Moving the test to the differing second argument switches the chosen1 into2.
内容来源: swc-project/swc