diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-10-20 03:21:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-20 03:21:30 +0800 |
commit | 543dd7d3d750e83b00e50bbf74fa786a7c1d243e (patch) | |
tree | 24fae6f9d8fa4996cb4a140eac0780a994023593 /lib/output.js | |
parent | 6b4886c908c6415a397539701117cd493545d21b (diff) | |
download | tracifyjs-543dd7d3d750e83b00e50bbf74fa786a7c1d243e.tar.gz tracifyjs-543dd7d3d750e83b00e50bbf74fa786a7c1d243e.zip |
fix corner case in `comments` (#3500)
Diffstat (limited to 'lib/output.js')
-rw-r--r-- | lib/output.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index 827fa43a..b9d8a137 100644 --- a/lib/output.js +++ b/lib/output.js @@ -452,7 +452,7 @@ function OutputStream(options) { var self = this; var scan = node instanceof AST_Exit && node.value; var comments = dump(node); - if (!comments) return; + if (!comments) comments = []; if (scan) { var tw = new TreeWalker(function(node) { |