Skip to content

Commit 6230c89

Browse files
成仕伟marijnh
authored andcommitted
better comment message for pp.overrideContext
1 parent 9c2cad5 commit 6230c89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

acorn/src/tokencontext.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ pp.updateContext = function(prevType) {
7979
this.exprAllowed = type.beforeExpr
8080
}
8181

82-
// Used to handle egde case when token context could not be inferred correctly in tokenize phase
82+
// Used to handle egde cases when token context could not be inferred correctly during tokenization phase
83+
8384
pp.overrideContext = function(tokenCtx) {
8485
if (this.curContext() !== tokenCtx) {
8586
this.context[this.context.length - 1] = tokenCtx

0 commit comments

Comments
 (0)