This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] for await, and fix a crash with for loops.
ClosedPublic

Authored by mprobst on May 18 2017, 11:39 AM.

Details

Summary

The syntax is actually for await (const x of y) (d'oh).
This also fixes a crash for for tokens not followed by additional tokens.

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst created this revision.May 18 2017, 11:39 AM
djasper accepted this revision.May 18 2017, 2:23 PM
This revision is now accepted and ready to land.May 18 2017, 2:23 PM
This revision was automatically updated to reflect the committed changes.