5 lines
191 B
JavaScript
5 lines
191 B
JavaScript
module.exports = (context, badBrowser) => ({
|
|
'LogicalExpression[operator="??"]'(node) {
|
|
context.report(node, `the Nullish Coalescing Operator is not supported in ${badBrowser}`)
|
|
}
|
|
})
|