Files
Kmake/test/fixtures/source-map/babel-throw-original.js
2026-05-26 23:36:42 -07:00

20 lines
298 B
JavaScript

/*---
esid: prod-OptionalExpression
features: [optional-chaining]
---*/
const obj = {
a: {
b: 22
}
};
function fn () {
return {};
}
setTimeout((err) => {
// OptionalExpression (MemberExpression OptionalChain) OptionalChain
if (obj?.a?.b === 22) throw Error('an exception');
}, 5);