You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parcel panics in SWC when building a TypeScript file with 1 / {2} in it.
Reproduction:
user@notebook:/tmp/tmp.OWak309LHY$ echo '1 / {2}' > index.ts
user@notebook:/tmp/tmp.OWak309LHY$ npx parcel build index.ts
Need to install the following packages:
parcel@2.12.0
Ok to proceed? (y)
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
(node:1061820) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
⠇ Building index.ts...
thread '<unnamed>' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_utils-0.126.2/src/lib.rs:2608:34:
internal error: entered unreachable code
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Rayon: detected unexpected panic; aborting
Aborted (core dumped)
Parcel panics in SWC when building a TypeScript file with
1 / {2}
in it.Reproduction:
Seems to be happening here: https://docs.rs/swc_ecma_utils/0.126.2/src/swc_ecma_utils/lib.rs.html#2608.
Parcel: 2.12.0.
Node.js: 21.4.0.
REPL link.
The text was updated successfully, but these errors were encountered: