oxc/tasks
翠 / green 8c8b5fa9be
fix(minifier): avoid minifing String(a) into "" + a for symbols (#8612)
We shouldn't change `String(a)` into `"" + a` if `a` can be a Symbol.
`String(Symbol())` does not throw an error, but `"" + Symbol()` does.

**References**
- [Spec of `ToString` (called for `"" +
variable`)](https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tostring)
- [Spec of
`String(a)`](https://tc39.es/ecma262/multipage/text-processing.html#sec-string-constructor-string-value)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-20 13:34:46 +08:00
..
ast_tools refactor(ast): align #[estree(via)] behavior (#8599) 2025-01-19 20:44:33 +00:00
benchmark ci(benchmark): make lexer benchmark more realistic (#8573) 2025-01-18 01:47:07 +00:00
common chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
compat_data refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
coverage fix(transformer/typescript): correctly resolve references to non-constant enum members (#8543) 2025-01-18 17:02:50 +08:00
e2e feat(tasks/e2e): transformer + minifier runtime tests for popular npm packages (#8552) 2025-01-17 19:13:59 +08:00
javascript_globals feat(linter)!: sync sindresorhus/globals; removed Object.prototype properties from builtin and es* globals (#6991) 2024-10-29 04:13:20 +00:00
lint_rules fix(tasks/lint_rules): sync unicorn rules with eslint rules (#8224) 2025-01-03 11:39:51 +08:00
minsize fix(minifier): avoid minifing String(a) into "" + a for symbols (#8612) 2025-01-20 13:34:46 +08:00
prettier_conformance fix(tasks/prettier_conformance): fix compile error 2025-01-19 12:17:25 +08:00
rulegen chore(deps): update dependency rust to v1.84.0 (#8391) 2025-01-09 18:11:17 +00:00
transform_checker refactor(span): derive Copy on Atom (#8596) 2025-01-19 16:14:23 +08:00
transform_conformance fix(transformer/typescript): correctly resolve references to non-constant enum members (#8543) 2025-01-18 17:02:50 +08:00
website feat(linter): Format the configuration documentation correctly (#8583) 2025-01-18 17:02:32 +08:00