JSTQL-JS-Transform/output_testing/452property-call-evaluation-order.js

12 lines
286 B
JavaScript
Raw Normal View History

// Should print A, arg, original
function Component() {
const changeF = o => {
o.f = () => "new" |> console.log(%);
};
const x = {
f: () => "original" |> console.log(%)
};
(x |> changeF(%), "arg" |> console.log(%), 1) |> ("A" |> console.log(%), x).f(%);
return x;
}