mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
ef0f33eb7d
Conformance tests for `oxc_lexer` crate rely on using `catch_unwind` to catch panics and report them, rather than crashing the whole process. Currently this doesn't work because conformance is compiled with `panic = "abort"` (inherited from `release` profile). This PR fixes that by adding `panic = "unwind"` to `coverage` profile. I've measured the time it takes to run conformance locally before/after this change, and the difference is within noise (+/- 2%), so this seems to have no adverse effects. `codegen-conformance` profile only existed to add `panic = "unwind"` too, so after this change it becomes identical to `coverage` profile. That makes it redundant, so this PR removes it in favour of just using `coverage` everywhere.
30 lines
817 B
JSON
30 lines
817 B
JSON
{
|
|
"name": "oxc-codegen-conformance",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "Node API binding around `oxc_parser` + `oxc_codegen`, used as the reference output for the `oxc-codegen` package's conformance tests",
|
|
"license": "MIT",
|
|
"author": "Boshen and oxc contributors",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/oxc-project/oxc.git",
|
|
"directory": "tasks/codegen_conformance"
|
|
},
|
|
"type": "module",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"build-dev": "napi build --esm --platform",
|
|
"build-test": "pnpm run build-dev --profile coverage",
|
|
"build": "pnpm run build-test"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "catalog:"
|
|
},
|
|
"napi": {
|
|
"binaryName": "codegen_conformance"
|
|
},
|
|
"engines": {
|
|
"node": "^20.19.0 || >=22.12.0"
|
|
}
|
|
}
|