diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-23 22:22:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 06:22:55 +0800 |
commit | 2390fae5c4b008aa1028ffdddaa071e4084ef8ac (patch) | |
tree | 962a3258aa0d53d66dda3c6736a3750b46f3f0a3 /lib/transform.js | |
parent | 56fce2131c86ed58ac00bb27b308054b1c2a669f (diff) | |
download | tracifyjs-2390fae5c4b008aa1028ffdddaa071e4084ef8ac.tar.gz tracifyjs-2390fae5c4b008aa1028ffdddaa071e4084ef8ac.zip |
support default values (#4442)
Diffstat (limited to 'lib/transform.js')
-rw-r--r-- | lib/transform.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/transform.js b/lib/transform.js index 5372cc59..0b92f8b5 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -126,6 +126,10 @@ TreeTransformer.prototype = new TreeWalker; self.name = self.name.transform(tw); if (self.value) self.value = self.value.transform(tw); }); + DEF(AST_DefaultValue, function(self, tw) { + self.name = self.name.transform(tw); + self.value = self.value.transform(tw); + }); DEF(AST_Lambda, function(self, tw) { if (self.name) self.name = self.name.transform(tw); self.argnames = do_list(self.argnames, tw); |