JSTQL-JS-Transform/output_testing/1134destructure-object-assignment-to-context-var.js

20 lines
280 B
JavaScript
Raw Normal View History

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