JSTQL-JS-Transform/output_testing/1077nested-optional-member-expr.js

6 lines
No EOL
185 B
JavaScript

// We should codegen nested optional properties correctly
// (i.e. placing `?` in the correct PropertyLoad)
function Component(props) {
let x = props.a?.b.c.d |> foo(%);
return x;
}