oxc/tasks/coverage
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
..
babel@eccbd20338 chore(just): change sync command to sync-submodules 2024-01-22 17:45:13 +08:00
misc fix(parser): fix crash on TSTemplateLiteralType in function return position (#2089) 2024-01-19 23:14:05 +08:00
src ci: disable codegen runtime tests for now 2024-01-15 21:24:07 +08:00
test262@17ba9aea47 chore(just): change sync command to sync-submodules 2024-01-22 17:45:13 +08:00
typescript@64d2eeea7b chore: update snapshots 2024-01-22 19:16:09 +08:00
Cargo.toml chore(deps): bump the dependencies group with 3 updates (#2033) 2024-01-15 15:31:32 +08:00
codegen_babel.snap chore: update snapshots 2023-11-28 16:27:10 +08:00
codegen_misc.snap fix(parser): fix crash on TSTemplateLiteralType in function return position (#2089) 2024-01-19 23:14:05 +08:00
codegen_runtime_test262.snap fix(codegen): print Directive original string (#2157) 2024-01-25 15:24:05 +08:00
codegen_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
codegen_typescript.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
minifier_babel.snap chore: update snapshots 2023-11-28 16:27:10 +08:00
minifier_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
parser_babel.snap chore: update snapshots 2024-01-15 21:13:05 +08:00
parser_misc.snap fix(parser): fix crash on TSTemplateLiteralType in function return position (#2089) 2024-01-19 23:14:05 +08:00
parser_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
parser_typescript.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
README.md chore(coverage): remove mention of git submodule update --remote in README 2023-04-01 10:57:25 +08:00

Coverage

The parser is tested against test262, babel and TypeScript for conformance.

Note: tests against regexp are disabled for now.

Clone the test files beforehand:

git submodule update --init

Development

# full run
cargo coverage
cargo coverage js # for test262
cargo coverage babel # for babel
cargo coverage ts # for typescript

# run in watch
cargo watch -x 'coverage js'

# filter for a file path
cargo watch -x 'coverage js --filter filter-file-path'