-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ecmascript/codegen): fix and use omit_trailing_semi (#1298)
swc_ecma_codegen: - Use omit_trailing_semi in 'assert_min' tests, to identify bugs. Before this, no code was using this method - and it had some serious bugs. - Omit semicolons when writing punctuation, as it's permitted to do so. - Use two macros ('semi', 'formatting_semi') to distinguish between required semicolons, as used in for(...), and optional ones that are used between statements. This commit does not enforce the use of omit_trailing_semi when cfg.minify is used (except in tests using assert_min), and as such should not modify the behavior of existing apps. This is confirmed by the Test262 suite passing without changes. Co-authored-by: 강동윤 <kdy1@dudy.kr>
- Loading branch information
Showing
10 changed files
with
197 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.