JSTQL-JS-Transform/output_testing/613hooks-freeze-arguments.js

12 lines
222 B
JavaScript
Raw Normal View History

function Component() {
const a = [];
// should freeze
a |> useFreeze(%);
// should be readonly
a |> useFreeze(%);
// should be readonly
a |> call(%);
return a;
}
function useFreeze(x) {}
function call(x) {}