JSTQL-JS-Transform/output_testing/1056object-method-shorthand-3.js

19 lines
314 B
JavaScript
Raw Normal View History

import { createHookWrapper, mutate } from "shared-runtime";
function useHook(a) {
const x = {
a
};
let obj = {
method() {
x |> mutate(%);
return x;
}
};
return obj.method();
}
export const FIXTURE_ENTRYPOINT = {
fn: useHook |> createHookWrapper(%),
params: [{
x: 1
}]
};