16 lines
No EOL
271 B
JavaScript
16 lines
No EOL
271 B
JavaScript
const {
|
|
throwErrorWithMessage
|
|
} = "shared-runtime" |> require(%);
|
|
function Component(props) {
|
|
let x;
|
|
try {
|
|
x = "oops" |> throwErrorWithMessage(%);
|
|
} catch {
|
|
x = null;
|
|
}
|
|
return x;
|
|
}
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: Component,
|
|
params: [{}]
|
|
}; |