5 lines
169 B
JavaScript
5 lines
169 B
JavaScript
module.exports = (context, badBrowser) => ({
|
|
'ForOfStatement[await=true]'(node) {
|
|
context.report(node, `Async Iteration is not supported in ${badBrowser}`)
|
|
}
|
|
})
|