JSTQL-JS-Transform/output_testing/1087error.todo-object-expression-computed-key-modified-during-after-construction.js

15 lines
328 B
JavaScript
Raw Normal View History

import { identity, mutate, mutateAndReturn } from "shared-runtime";
function Component(props) {
const key = {};
const context = {
[key |> mutateAndReturn(%)]: [props.value] |> identity(%)
};
key |> mutate(%);
return context;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
value: 42
}]
};