ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
462 stars 27 forks source link

npm test Segmentation fault #65

Closed coconutxin closed 1 year ago

coconutxin commented 1 year ago

I get Segmentation fault when running npm test. how can i fix it?

xxx@xxxdev:~/wasmoon$ npm run build:wasm:dev

> wasmoon@1.14.1 build:wasm:dev
> ./build.sh dev

emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations]
xxx@xxxdev:~/wasmoon$ npm run build

> wasmoon@1.14.1 build
> rollup -c && tsc -d --emitDeclarationOnly --rootDir src --declarationDir dist

./src/index.ts → dist/index.js...
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
module (imported by build/glue.js)
created dist/index.js in 4.8s
xxx@xxxdev:~/wasmoon$ npm test

> wasmoon@1.14.1 test
> jest --env=node ./test/

 RUNS  test/engine.test.js
Segmentation fault
ceifa commented 1 year ago

This seems like a jest issue https://github.com/facebook/jest/issues/10662 Will probably be fixed on #67

ceifa commented 1 year ago

This is a regression on emsdk, please use the 3.1.26 version to build: emsdk install 3.1.26 && emsdk activate 3.1.26