File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed
packages/npm-packages/ruby-wasm-wasi/src Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,7 @@ export const DefaultRubyVM = async (
70
70
} > => {
71
71
await init ( ) ;
72
72
73
- const wasi = new WASI ( {
74
- env : {
75
- // FIXME(katei): setjmp consumes a LOT of stack now, so we extend
76
- // default Fiber stack size as well as main stack size allocated
77
- // by wasm-ld's --stack-size. The ideal solution is to reduce
78
- // stack consumption in setjmp.
79
- RUBY_FIBER_MACHINE_STACK_SIZE : "16777216" ,
80
- } ,
81
- } ) ;
73
+ const wasi = new WASI ( { } ) ;
82
74
const vm = new RubyVM ( ) ;
83
75
84
76
const imports = wasi . getImports ( rubyModule ) as WebAssembly . Imports ;
Original file line number Diff line number Diff line change @@ -2,15 +2,7 @@ import { WASI } from "wasi";
2
2
import { RubyVM } from "./index" ;
3
3
4
4
export const DefaultRubyVM = async ( rubyModule : WebAssembly . Module ) => {
5
- const wasi = new WASI ( {
6
- env : {
7
- // FIXME(katei): setjmp consumes a LOT of stack now, so we extend
8
- // default Fiber stack size as well as main stack size allocated
9
- // by wasm-ld's --stack-size. The ideal solution is to reduce
10
- // stack consumption in setjmp.
11
- RUBY_FIBER_MACHINE_STACK_SIZE : "16777216" ,
12
- } ,
13
- } ) ;
5
+ const wasi = new WASI ( ) ;
14
6
const vm = new RubyVM ( ) ;
15
7
const imports = {
16
8
wasi_snapshot_preview1 : wasi . wasiImport ,
You can’t perform that action at this time.
0 commit comments