oxc/crates
overlookmotel cc2ddbee77
refactor(parser): catch all illegal UTF-8 bytes (#2415)
Catch all illegal UTF-8 bytes with the `UER` byte handler.

From https://datatracker.ietf.org/doc/html/rfc3629:

> The octet values C0, C1, F5 to FF never appear.

This change *should* make no difference at all, as a valid `&str` may not contain any of these byte values anyway. But it's possible if user has e.g. created the string with `str::from_utf8_unchecked` and not obeyed the safety contraints. This will at least contain the damage if that's happened, and panic rather than lead to UB. And since we're already catching other error conditions, may as well catch them all.
2024-02-16 20:49:01 +08:00
..
oxc Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_allocator Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_ast chore(ast): add some documentation links (#2399) 2024-02-12 13:20:45 +08:00
oxc_cli feat(cli): add --version (#2182) 2024-01-26 19:13:17 +08:00
oxc_codegen fix(codegen): when async is on the left-hand side of a for-of, wrap it in parentheses (#2407) 2024-02-13 22:42:23 +08:00
oxc_diagnostics chore(deps): update rust crates (#2396) 2024-02-12 11:42:57 +08:00
oxc_index Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_js_regex Initialize JS Regex crates and def AST. (#1500) 2023-11-23 00:22:17 +08:00
oxc_language_server chore(deps): update cargo (#2191) 2024-01-29 11:38:47 +08:00
oxc_linter feat: add Typescript ban-tslint-comment (#2371) 2024-02-13 23:14:13 +08:00
oxc_macros feat(linter): remove the --timings feature (#2049) 2024-01-16 14:21:04 +08:00
oxc_minifier refactor: remove global allocator from non-user facing apps (#2401) 2024-02-12 14:09:05 +08:00
oxc_parser refactor(parser): catch all illegal UTF-8 bytes (#2415) 2024-02-16 20:49:01 +08:00
oxc_prettier feat(coverage): add prettier idempotency test (#2402) 2024-02-12 15:30:16 +08:00
oxc_semantic refactor(semantic): reduce allocation in resolve_references_for_current_scope (#2414) 2024-02-16 20:48:03 +08:00
oxc_span Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_syntax Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_transformer Publish crates v0.7.0 2024-02-09 23:01:12 +08:00
oxc_wasm fix(playground): syntax check does not work (#2412) 2024-02-15 20:05:14 +08:00