Skip to content

Commit

Permalink
Refactoring - changed var to const and let
Browse files Browse the repository at this point in the history
  • Loading branch information
anoniscoding committed Dec 20, 2018
1 parent a0d72b4 commit 7b865d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand All @@ -23,7 +23,7 @@ class Parser {
}

initIsArithmeticExpression () {
var _isArithmeticExpression = true;
let _isArithmeticExpression = true;
this.setIsArithmeticExpression = (isArithmetic) => {
_isArithmeticExpression = isArithmetic;
};
Expand Down

0 comments on commit 7b865d0

Please sign in to comment.