swc: `@swc/wasm-typescript` is failing on some architectures
@kdy1 it seems tests are failing on some architecture such as:
- s390x
- ppc64
19:22:06 code: 'ERR_ASSERTION'
19:22:06 name: 'AssertionError'
19:22:06 expected: ''
19:22:06 actual: |-
19:22:06 wasm://wasm/0072633a:1
19:22:06
19:22:06
19:22:06 RuntimeError: memory access out of bounds
19:22:06 at wasm://wasm/0072633a:wasm-function[1521]:0x1a6744
19:22:06 at wasm://wasm/0072633a:wasm-function[51]:0x60118
19:22:06 at wasm://wasm/0072633a:wasm-function[1264]:0x1a32e8
19:22:06 at module.exports.transformSync (node:internal/deps/swc/wasm:248:14)
19:22:06 at tsParse (node:internal/modules/helpers:310:18)
19:22:06 at node:internal/main/eval_string:27:3
_Originally posted by @marco-ippolito in https://github.com/nodejs/node/issues/53725#issuecomment-2229226306_
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (17 by maintainers)
@marco-ippolito I published it as
@swc/binding_typescript_wasm@1.7.0-rc.0I published
1.7.0-rc.1, which includes manual fix offataloption by @magic-akari. @marco-ippolito Can you try this version?We use
wasm-bindgenandwasm-pack.https://github.com/swc-project/swc/blob/02f77f6409b831b67859f0290e4484a4353e3351/bindings/binding_typescript_wasm/scripts/build.sh#L4-L7