JSTQL-JS-Transform/output_testing/1158constant-prop-to-object-method.js

14 lines
No EOL
241 B
JavaScript

import { identity } from "shared-runtime";
function Foo() {
const CONSTANT = 1;
const x = {
foo() {
return CONSTANT |> identity(%);
}
};
return x.foo();
}
export const FIXTURE_ENTRYPOINT = {
fn: Foo,
params: [{}]
};