mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-08-31 00:19:45 +08:00
feat: updates & github event support
This commit is contained in:
+1
-1
@@ -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
@@ -65,7 +65,7 @@ class ScopeManager {
|
||||
return this.__options.ignoreEval;
|
||||
}
|
||||
|
||||
__isNodejsScope() {
|
||||
isGlobalReturn() {
|
||||
return this.__options.nodejsScope || this.__options.sourceType === "commonjs";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user