JSTQL-JS-Transform/output_testing/505lambda-mutate-shadowed-object.js

11 lines
No EOL
166 B
JavaScript

function Component() {
const x = {};
{
const x = [];
const fn = function () {
x |> mutate(%);
};
fn();
}
return x; // should return {}
}