feat: refactoring project
This commit is contained in:
4
node_modules/terser/lib/scope.js
generated
vendored
4
node_modules/terser/lib/scope.js
generated
vendored
@@ -200,7 +200,7 @@ function redefined_catch_def(def) {
|
||||
}
|
||||
}
|
||||
|
||||
AST_Scope.DEFMETHOD("figure_out_scope", function(options, { parent_scope = null, toplevel = this } = {}) {
|
||||
AST_Scope.DEFMETHOD("figure_out_scope", function(options, { parent_scope = undefined, toplevel = this } = {}) {
|
||||
options = defaults(options, {
|
||||
cache: null,
|
||||
ie8: false,
|
||||
@@ -524,7 +524,7 @@ AST_Scope.DEFMETHOD("add_child_scope", function (scope) {
|
||||
scope.parent_scope = this;
|
||||
|
||||
// Propagate to this.uses_arguments from arrow functions
|
||||
if ((scope instanceof AST_Arrow) && !this.uses_arguments) {
|
||||
if ((scope instanceof AST_Arrow) && (this instanceof AST_Lambda && !this.uses_arguments)) {
|
||||
this.uses_arguments = walk(scope, node => {
|
||||
if (
|
||||
node instanceof AST_SymbolRef
|
||||
|
||||
Reference in New Issue
Block a user