oxc/crates
underfin 989ab88bc6
fix(codegen): print Directive original string (#2157)
> A Use Strict Directive may not contain an EscapeSequence or
LineContinuation.

It is `Use Strict Directive` spec, but the `expression` of `Directive`
isn't original string value, it has error if using it to codegen, so
here using `directive` of `Directive` to codegen and not to escape it.
Here is crashed test cases.

``` js
'use str\
ict';
```
The babel will print the original string, I follow it and avoid using
`print_str` because it will escape string.

I also changed some code using the `expression` of `Directive` to check
`Use Strict Directive` .
2024-01-25 15:24:05 +08:00
..
oxc Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_allocator Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_ast refactor(ast): improve simple_assignment_target_identifier and simple_assignment_target_member_expression method (#2153) 2024-01-24 11:24:27 +08:00
oxc_cli feat(cli): disallow path pointing to parent directories (#2125) 2024-01-22 17:52:57 +08:00
oxc_codegen fix(codegen): print Directive original string (#2157) 2024-01-25 15:24:05 +08:00
oxc_diagnostics Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_index Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_js_regex
oxc_language_server chore: try fix broken env_logger 2024-01-23 15:03:53 +08:00
oxc_linter fix(codegen): print Directive original string (#2157) 2024-01-25 15:24:05 +08:00
oxc_macros feat(linter): remove the --timings feature (#2049) 2024-01-16 14:21:04 +08:00
oxc_minifier feat(codegen): move string test to codegen (#2150) 2024-01-23 23:49:36 +08:00
oxc_parser chore(deps): update cargo (#2138) 2024-01-23 14:48:04 +08:00
oxc_prettier fix(codegen): print Directive original string (#2157) 2024-01-25 15:24:05 +08:00
oxc_semantic fix(codegen): print Directive original string (#2157) 2024-01-25 15:24:05 +08:00
oxc_span Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_syntax refactor(syntax): don't re-export unicode_id_start 2024-01-23 11:05:17 +08:00
oxc_transformer refactor(transformer/decorators): align the implementation of all versions (#2159) 2024-01-25 13:11:24 +08:00
oxc_wasm refactor(linter): perfect the scope linter (#2092) 2024-01-20 10:46:35 +08:00