cloudflare / cloudflare/workers-rs
[BUG] wasm-pack test fails with JavaScript snippet error caused by wasm-streams
Open
- Dominant language
- Rust
- Stars
- 3.7k
- Forks
- 429
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### What version of `workers-rs` are you using?
0.0.16
### Describe the bug
Running `wasm-pack test --node` throws the following exception:
```
export function bytes_literal() { return "bytes"; }
^^^^^^
SyntaxError: Unexpected token 'export'
```
This is caused by wasm-streams 0.2.3 using JavaScript snippets. Version 0.3.0 of wasm-streams [fixes this](https://github.com/MattiasBuelens/wasm-streams/releases/tag/v0.3.0).
Please upgrade the dependency to 0.3.0 and publish a new release.
### Steps To Reproduce
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.