From 7b865d0079ef5a8b33cf13bad767efa6ce951c2e Mon Sep 17 00:00:00 2001 From: "karounwi.anuoluwapo" Date: Thu, 20 Dec 2018 15:48:33 +0100 Subject: [PATCH] Refactoring - changed var to const and let --- src/parsers/parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parsers/parser.js b/src/parsers/parser.js index 5d22714..408cd45 100644 --- a/src/parsers/parser.js +++ b/src/parsers/parser.js @@ -13,7 +13,7 @@ class Parser { initBlockTypeStack () { // a work around for creating a private field with public accessors - var _blockTypeStack = []; + const _blockTypeStack = []; this.pushToBlockTypeStack = (blockName) => { _blockTypeStack.push(blockName); }; @@ -23,7 +23,7 @@ class Parser { } initIsArithmeticExpression () { - var _isArithmeticExpression = true; + let _isArithmeticExpression = true; this.setIsArithmeticExpression = (isArithmetic) => { _isArithmeticExpression = isArithmetic; };