diff --git a/rules/no-native.js b/rules/no-native.js index f5193804..4e31e064 100644 --- a/rules/no-native.js +++ b/rules/no-native.js @@ -31,7 +31,7 @@ module.exports = function (context) { 'Program:exit': function () { var scope = context.getScope() - scope.through.forEach(function (ref) { + scope.implicit.left.forEach(function (ref) { if (ref.identifier.name !== 'Promise') { return }