Skip to content

Commit 0087587

Browse files
committed
Simplify.
1 parent fa12a8e commit 0087587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function observable(Parser) {
2222
return super.enterScope.apply(this, arguments);
2323
}
2424
exitScope() {
25-
if (this.scopeStack[this.scopeStack.length - 1] & SCOPE_FUNCTION) --this.O_function;
25+
if (this.currentScope() & SCOPE_FUNCTION) --this.O_function;
2626
return super.exitScope.apply(this, arguments);
2727
}
2828
parseForIn(node) {

0 commit comments

Comments
 (0)