retrofit catch as block-scoped (#4165)

This commit is contained in:
Alex Lam S.L
2020-10-02 16:29:58 +01:00
committed by GitHub
parent 47a5e6e17a
commit ccd91b9952
3 changed files with 38 additions and 40 deletions

View File

@@ -5401,7 +5401,7 @@ merge(Compressor.prototype, {
process_boolean_returns(this, compressor);
});
AST_Scope.DEFMETHOD("var_names", function() {
AST_BlockScope.DEFMETHOD("var_names", function() {
var var_names = this._var_names;
if (!var_names) {
this._var_names = var_names = Object.create(null);