Fix scope check for 2nd+ lexical bindings (#9600)
This commit is contained in:
@@ -117,8 +117,7 @@ export default class ScopeHandler {
|
||||
const scope = this.scopeStack[i];
|
||||
if (
|
||||
(scope.lexical.indexOf(name) > -1 &&
|
||||
!(scope.flags & SCOPE_SIMPLE_CATCH) &&
|
||||
scope.lexical[0] === name) ||
|
||||
!(scope.flags & SCOPE_SIMPLE_CATCH && scope.lexical[0] === name)) ||
|
||||
(!this.treatFunctionsAsVarInScope(scope) &&
|
||||
scope.functions.indexOf(name) > -1)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user