mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
b3d3a7bc73
**Related issue:** - Closes #7969.
14 lines
200 B
JavaScript
14 lines
200 B
JavaScript
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); |