-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
internal-issue-createdAn internal Google issue has been created to track this GitHub issueAn internal Google issue has been created to track this GitHub issuetriage-doneHas been reviewed by someone on triage rotation.Has been reviewed by someone on triage rotation.
Description
If you run if (!await test()) { return true }
in Safari 10/11, it will throw you a parsing error, needing await test()
to be wrapped in parentheses so the parser doesn't trip up. CC thinks the parens is unnecessary and strips it out though.
Here's a replication link to the CC UI.
This has been reported in Webkit fixed in later versions, documented and fixed in UglifyJS here and here.
WearyMonkey and zavr-1
Metadata
Metadata
Assignees
Labels
internal-issue-createdAn internal Google issue has been created to track this GitHub issueAn internal Google issue has been created to track this GitHub issuetriage-doneHas been reviewed by someone on triage rotation.Has been reviewed by someone on triage rotation.