From d9d219fc7f846875153a0cc831f29e62a7cc9a0a Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Sat, 1 Feb 2020 23:38:29 -0600 Subject: [PATCH] Fix: global is a reserved word --- lib/rules/no-obj-calls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rules/no-obj-calls.js b/lib/rules/no-obj-calls.js index 5102d5594949..9ff666b03281 100644 --- a/lib/rules/no-obj-calls.js +++ b/lib/rules/no-obj-calls.js @@ -47,8 +47,8 @@ module.exports = { const tracker = new ReferenceTracker(scope); const traceMap = {}; - for (const global of nonCallableGlobals) { - traceMap[global] = { + for (const g of nonCallableGlobals) { + traceMap[g] = { [CALL]: true }; }