Special character in import/export name of Wasm module causes error
Closed this issue · 0 comments
0f-0b commented
;; newline.wasm
(module (func (export "\n") (import "\n" "\n")))
When importing this module, the generated code contains invalid syntax.
$ echo 'import "./newline.wasm"' | deno run -
error: The module's source code could not be parsed: Expected ',', got 'string literal ( };, " };)' at …/newline.wasm:5:1
" };
~~~~
$ deno --version
deno 2.1.0+0b8df9f (canary, release, aarch64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2