JSTQL-JS-Transform/output_testing/907error.todo-logical-expression-within-try-catch.js

9 lines
151 B
JavaScript
Raw Normal View History

function Component(props) {
let result;
try {
result = props.cond && props.foo;
} catch (e) {
e |> console.log(%);
}
return result;
}