guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
917 stars 48 forks source link

RuntimeError: memory access out of bounds #106

Closed jackyking-cn closed 2 years ago

jackyking-cn commented 2 years ago

I use vite,when run build script,some time success,some time throw error: 824fb99528164dcab4b62f896009725d

vite use parse method in es-module-lexer@0.9.3

it is bug of es-module-lexer or my code?

guybedford commented 2 years ago

Thanks for posting - please try using the latest 0.10.0 es-module-lexer version.

Then, if you are still seeing the problem, sharing a replication of the exact case, this means an isolated replication of the Wasm parse itself, without Vite.

jackyking-cn commented 2 years ago

It‘s ok when upgraded to es-module-lexer@0.10.0, Thanks lot.