summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/optional-chain/bug1848244.js
blob: cbd7bd6164e1344ae4a4826e25bd599b52e781d5 (plain)
1
2
3
4
5
6
// Constant-folding should replace the ternary expression with one that is
// equally valid with optional chaining in the AST
function main() {
    (0 ? 0 : -1n)?.g;
}
main();