diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-06-06 04:06:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 04:06:42 +0800 |
commit | 27c5284d3dc0ab131168a73035be7d87ebda30e9 (patch) | |
tree | ae0fb7adca68471e6705f60ae3c022bfddd45473 /lib | |
parent | 540220b91bb02d50d04422dc782a5fe1905dd27a (diff) | |
download | tracifyjs-27c5284d3dc0ab131168a73035be7d87ebda30e9.tar.gz tracifyjs-27c5284d3dc0ab131168a73035be7d87ebda30e9.zip |
workaround webkit parsing error (#2056)
apply `webkit` to jetstream tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/output.js b/lib/output.js index 2fb7441b..38f58531 100644 --- a/lib/output.js +++ b/lib/output.js @@ -70,6 +70,7 @@ function OutputStream(options) { semicolons : true, shebang : true, source_map : null, + webkit : false, width : 80, wrap_iife : false, }, true); @@ -597,6 +598,13 @@ function OutputStream(options) { return true; } + if (output.option('webkit')) { + var p = output.parent(); + if (p instanceof AST_PropAccess && p.expression === this) { + return true; + } + } + if (output.option('wrap_iife')) { var p = output.parent(); return p instanceof AST_Call && p.expression === this; |