23 lines
392 B
JavaScript
23 lines
392 B
JavaScript
import {setProperty} from 'shared-runtime';
|
|
|
|
function Component(props) {
|
|
// start of scope for y, depend on props.a
|
|
let y = {};
|
|
|
|
// nested scope for x, dependent on props.a
|
|
const x = {};
|
|
setProperty(x, props.a);
|
|
// end of scope for x
|
|
|
|
y.a = props.a;
|
|
y.x = x;
|
|
// end of scope for y
|
|
|
|
return y;
|
|
}
|
|
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: Component,
|
|
params: [{a: 42}],
|
|
};
|