Skip to content

Commit

Permalink
fix flow error :(
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Dec 31, 2019
1 parent 7e69f06 commit 56addd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-parser/src/util/scope.js
Expand Up @@ -55,6 +55,8 @@ export default class ScopeHandler<IScope: Scope = Scope> {
get inGenerator() {
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0;
}
// the following loop always exit because SCOPE_PROGRAM is SCOPE_VAR
// $FlowIgnore
get inAsync() {
for (let i = this.scopeStack.length - 1; ; i--) {
const scope = this.scopeStack[i];
Expand Down

0 comments on commit 56addd8

Please sign in to comment.