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

15 lines
326 B
JavaScript
Raw Normal View History

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