main
js 19 lines 309 Bytes
Raw
1 const {throwInput} = require('shared-runtime');
2
3 function Component(props) {
4 let x;
5 try {
6 const y = [];
7 y.push(props.y);
8 throwInput(y);
9 } catch (e) {
10 e.push(props.e);
11 x = e;
12 }
13 return x;
14 }
15
16 export const FIXTURE_ENTRYPOINT = {
17 fn: Component,
18 params: [{y: 'foo', e: 'bar'}],
19 };