JSTQL-JS-Transform/output_testing/1040error.todo-object-expression-computed-key-mutate-key-while-constructing-object.js

14 lines
308 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(%)
};
return context;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
value: 42
}]
};