From 7e85da74cbb835963960721ff67a4520d106a387 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Wed, 14 Jan 2015 12:31:59 +0200 Subject: [PATCH] `shouldSkipSpace` is no more needed in `finishToken`. --- acorn.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acorn.js b/acorn.js index f3a9d614ba..beb4959cf5 100644 --- a/acorn.js +++ b/acorn.js @@ -662,12 +662,12 @@ // after the token, so that the next one's `tokStart` will point at // the right position. - function finishToken(type, val, shouldSkipSpace) { + function finishToken(type, val) { tokEnd = tokPos; if (options.locations) tokEndLoc = curPosition(); var prevType = tokType; tokType = type; - if (shouldSkipSpace !== false) skipSpace(); + skipSpace(); tokVal = val; // Update context info @@ -686,7 +686,7 @@ } else if (type.keyword && prevType == _dot) { tokExprAllowed = false; } else if (tokExprAllowed && type == _function) { - tokExprAllowed = null; + tokExprAllowed = false; } else { tokExprAllowed = type.beforeExpr; }