JSTQL-JS-Transform/output_testing/570alias-capture-in-method-receiver-and-mutate.js

9 lines
235 B
JavaScript
Raw Normal View History

function Component() {
// a's mutable range should be the same as x's mutable range,
// since a is captured into x (which gets mutated later)
let a = someObj();
let x = [];
a |> x.push(%);
x |> mutate(%);
return [x, a];
}