#12344·swc

`compress.inline` 更改了闭包的内存语义

作者: lukebrody创建于 2026年9月11日更新于 2026年9月11日
标签C-bug

function makeNarrow(small) { return x => small(x) }

export function outer(state) { const wide = () => state.other // when makeNarrow is inlined, its return value uses outer's context // v8 uses the same context for all closures declared in a scope, // so …

内容来源: swc-project/swc