You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is actually a BUG of safari, however code introduced by tools like terser are unpredictable and hard to find root cause, it's better to avoid known compatibility issues in major browsers
I think we can piggy-back on the options we already have for Safari 10/11 on this.
We also need to enable these options by default as Safari has a lot of usage. I don't think it's reasonable for Terser to produce code that fails on a very used browser that people don't test their code on enough.
Bug report or Feature request?
Bug
Version (complete output of
terser -V
)terser 3.16.1
Complete CLI command or
minify()
options usedterser
inputterser
output or errorExpected result
This output code can be correctly evaluated in chrome 71.0.3578.98 which results:
In safari 12.0.2 (14606.3.4) it behaves incorrectly:
It seems not safe to compress computed property key like this
The text was updated successfully, but these errors were encountered: