aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-01-05 07:02:49 +0000
committerGitHub <noreply@github.com>2021-01-05 15:02:49 +0800
commit6eceac096694cfa3390e7112c4764a235592751d (patch)
treee22a76acbb8b27726f271c57306b8a08d78e4ab4 /lib/ast.js
parentfc5aee662d99257f59830ebcd5053ead48c9039b (diff)
downloadtracifyjs-6eceac096694cfa3390e7112c4764a235592751d.tar.gz
tracifyjs-6eceac096694cfa3390e7112c4764a235592751d.zip
enhance `inline` & `side_effects` (#4506)
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ast.js b/lib/ast.js
index 7b4c03d7..e8482d70 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -521,6 +521,10 @@ var AST_Lambda = DEFNODE("Lambda", "argnames length_read uses_arguments", {
},
each_argname: function(visit) {
var tw = new TreeWalker(function(node) {
+ if (node instanceof AST_DefaultValue) {
+ node.name.walk(tw);
+ return true;
+ }
if (node instanceof AST_DestructuredKeyVal) {
node.value.walk(tw);
return true;