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