JSTQL-JS-Transform/output_testing/1133repro-hoisting-variable-collision.js

13 lines
No EOL
252 B
JavaScript

function Component(props) {
const items = (x => x) |> props.items.map(%);
const x = 42;
return [x, items];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
items: [0, 42, null, undefined, {
object: true
}]
}]
};