oxc/crates
overlookmotel 641a78bc2b fix(parser): fix tests for number parsing (#4254)
Fix tests for parsing large numbers.

* Tests for imprecision decimals and octals weren't using numbers larger than `u64::MAX`, so were not testing what they were meant to be - that parser can handle larger numbers.
* Tests for decimals (e.g. `123.5`) were calling `parse_int` which isn't meant to handle that (`parse_float` does that).
* Tests were calling `parse_int` with negative numbers, which it's not meant to handle.

Also, re-order the const assertions in same order as the code above.
2024-07-15 01:26:13 +00:00
..
oxc feat(oxc): export oxc_mangler 2024-07-11 21:15:32 +08:00
oxc_allocator Release crates v0.20.0 (#4189) 2024-07-11 11:05:49 +08:00
oxc_ast refactor(semantic): update the order of visit_function and Visit fields in the builder to be consistent (#4248) 2024-07-14 11:39:15 +00:00
oxc_ast_macros Release crates v0.20.0 (#4189) 2024-07-11 11:05:49 +08:00
oxc_cfg Release crates v0.20.0 (#4189) 2024-07-11 11:05:49 +08:00
oxc_codegen chore(codegen): add ts snapshot test 2024-07-14 20:46:22 +08:00
oxc_diagnostics Release crates v0.20.0 (#4189) 2024-07-11 11:05:49 +08:00
oxc_index Release crates v0.20.0 (#4189) 2024-07-11 11:05:49 +08:00
oxc_isolated_declarations refactor(semantic): update the order of visit_function and Visit fields in the builder to be consistent (#4248) 2024-07-14 11:39:15 +00:00
oxc_js_regex
oxc_language_server chore: turn off doctest for all [[bin]] 2024-07-14 16:55:19 +08:00
oxc_linter feat(linter): add fixer for unicorn/no_useless_promise_resolve_reject (#4244) 2024-07-14 20:19:52 +08:00
oxc_macros chore: do not compile test crates that have no tests 2024-06-24 00:20:04 +08:00
oxc_mangler feat(mangler): initialize crate and integrate into minifier (#4197) 2024-07-11 10:35:13 +00:00
oxc_minifier fix(codegen): print parenthesis properly (#4245) 2024-07-14 04:13:10 +00:00
oxc_module_lexer Release crates v0.20.0 (#4189) 2024-07-11 11:05:49 +08:00
oxc_parser fix(parser): fix tests for number parsing (#4254) 2024-07-15 01:26:13 +00:00
oxc_prettier refactor(ast)!: store span details inside comment struct (#4132) 2024-07-09 23:23:43 +08:00
oxc_semantic refactor(semantic): update the order of visit_function and Visit fields in the builder to be consistent (#4248) 2024-07-14 11:39:15 +00:00
oxc_sourcemap feat(sourcemap): support SourceMapBuilder#token_chunks (#4220) 2024-07-13 10:11:14 +08:00
oxc_span Release crates v0.20.0 (#4189) 2024-07-11 11:05:49 +08:00
oxc_syntax feat(semantic): add ScopeFlags::CatchClause for use in CatchClause (#4205) 2024-07-12 03:47:07 +00:00
oxc_transformer feat(transformer): decode xml character entity &#xhhhh and &#nnnn; (#4235) 2024-07-13 02:38:07 +00:00
oxc_traverse refactor(semantic): update the order of visit_function and Visit fields in the builder to be consistent (#4248) 2024-07-14 11:39:15 +00:00
oxc_wasm fix(wasm): codegen is broken due to preserve_parens(false) 2024-07-11 01:33:10 +08:00