swc/crates/swc_ecma_minifier/tests/fixture/issues/7969/input.js

14 lines
200 B
JavaScript
Raw Normal View History

let a = 0;
function f(arr) {
let b = a;
return `${arr.map((child) => {
a = b + "str";
})}`;
}
function g(arr) {
return f(arr);
}
globalThis.g = g;
g([1, 2, 3])
console.log(a);