summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-new-symbol.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-new-symbol.js')
-rw-r--r--tools/eslint/lib/rules/no-new-symbol.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint/lib/rules/no-new-symbol.js b/tools/eslint/lib/rules/no-new-symbol.js
index d4c4e67b17..e8c87b1b63 100644
--- a/tools/eslint/lib/rules/no-new-symbol.js
+++ b/tools/eslint/lib/rules/no-new-symbol.js
@@ -24,12 +24,12 @@ module.exports = {
return {
"Program:exit": function() {
- let globalScope = context.getScope();
- let variable = globalScope.set.get("Symbol");
+ const globalScope = context.getScope();
+ const variable = globalScope.set.get("Symbol");
if (variable && variable.defs.length === 0) {
variable.references.forEach(function(ref) {
- let node = ref.identifier;
+ const node = ref.identifier;
if (node.parent && node.parent.type === "NewExpression") {
context.report(node, "`Symbol` cannot be called as a constructor.");