Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -7,6 +7,8 @@ exports.default = exports.ClassScope = void 0;
var _scopeflags = require("./scopeflags");
var _error = require("../parser/error");
class ClassScope {
constructor() {
this.privateNames = new Set();
@@ -45,7 +47,7 @@ class ClassScopeHandler {
current.undefinedPrivateNames.set(name, pos);
}
} else {
this.raiseUndeclaredPrivateName(name, pos);
this.raise(pos, _error.Errors.InvalidPrivateFieldResolution, name);
}
}
}
@@ -70,7 +72,7 @@ class ClassScopeHandler {
}
if (redefined) {
this.raise(pos, `Duplicate private name #${name}`);
this.raise(pos, _error.Errors.PrivateNameRedeclaration, name);
}
classScope.privateNames.add(name);
@@ -88,14 +90,10 @@ class ClassScopeHandler {
if (classScope) {
classScope.undefinedPrivateNames.set(name, pos);
} else {
this.raiseUndeclaredPrivateName(name, pos);
this.raise(pos, _error.Errors.InvalidPrivateFieldResolution, name);
}
}
raiseUndeclaredPrivateName(name, pos) {
this.raise(pos, `Private name #${name} is not defined`);
}
}
exports.default = ClassScopeHandler;