JSTQL-JS-Transform/output_testing/1247capturing-function-capture-ref-before-rename.js

20 lines
253 B
JavaScript
Raw Normal View History

function component(a, b) {
let z = {
a
};
(function () {
z |> mutate(%);
})();
let y = z;
{
// z is shadowed & renamed but the lambda is unaffected.
let z = {
b
};
y = {
y,
z
};
}
return y;
}