feat: updates & github event support

This commit is contained in:
Joel Male
2024-03-28 12:00:41 +10:00
parent 8561675bfc
commit 3cee2ba3f1
1640 changed files with 100049 additions and 152370 deletions
+1 -1
View File
@@ -409,7 +409,7 @@ class Referencer extends esrecurse.Visitor {
Program(node) {
this.scopeManager.__nestGlobalScope(node);
if (this.scopeManager.__isNodejsScope()) {
if (this.scopeManager.isGlobalReturn()) {
// Force strictness of GlobalScope to false when using node.js scope.
this.currentScope().isStrict = false;
+1 -1
View File
@@ -65,7 +65,7 @@ class ScopeManager {
return this.__options.ignoreEval;
}
__isNodejsScope() {
isGlobalReturn() {
return this.__options.nodejsScope || this.__options.sourceType === "commonjs";
}