--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/explicit-resource-management/valid-module-block-top-level-await-using-binding.js --- # Input ```js const m = module { await using foo = bar(); } ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1,3 +1,4 @@ -const m = module { +const m = module; +{ await using foo = bar(); -}; +} ``` # Output ```js const m = module; { await using foo = bar(); } ``` # Errors ``` valid-module-block-top-level-await-using-binding.js:1:18 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none > 1 │ const m = module { │ ^ 2 │ await using foo = bar(); 3 │ } i An explicit or implicit semicolon is expected here... > 1 │ const m = module { │ ^ 2 │ await using foo = bar(); 3 │ } i ...Which is required to end this statement > 1 │ const m = module { │ ^^^^^^^^^^^^^^^^^ 2 │ await using foo = bar(); 3 │ } ```