--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/bind-expressions/await.js --- # Input ```js const doBothThings = async () => { const request = doAsyncThing(); return (await request)::doSyncThing(); }; ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,4 +1,5 @@ const doBothThings = async () => { const request = doAsyncThing(); - return (await request)::doSyncThing(); + return await request; + ::doSyncThing() }; ``` # Output ```js const doBothThings = async () => { const request = doAsyncThing(); return await request; ::doSyncThing() }; ``` # Errors ``` await.js:3:27 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ const doBothThings = async () => { 2 │ const request = doAsyncThing(); > 3 │ return (await request)::doSyncThing(); │ ^ 4 │ }; 5 │ i An explicit or implicit semicolon is expected here... 1 │ const doBothThings = async () => { 2 │ const request = doAsyncThing(); > 3 │ return (await request)::doSyncThing(); │ ^ 4 │ }; 5 │ i ...Which is required to end this statement 1 │ const doBothThings = async () => { 2 │ const request = doAsyncThing(); > 3 │ return (await request)::doSyncThing(); │ ^^^^^^^^^^^^^^^^^^^^^^^ 4 │ }; 5 │ ```