mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
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> |
||
|---|---|---|
| .. | ||
| ast_tools | ||
| benchmark | ||
| common | ||
| compat_data | ||
| coverage | ||
| e2e | ||
| javascript_globals | ||
| lint_rules | ||
| minsize | ||
| prettier_conformance | ||
| rulegen | ||
| transform_checker | ||
| transform_conformance | ||
| website | ||