File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/npm-packages/ruby-wasm-wasi/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ export class RubyVM {
84
84
this . exceptionFormatter = new RbExceptionFormatter ( ) ;
85
85
}
86
86
87
- static async _instantiate ( initComponent : ( _ : typeof RubyJsJsRuntime ) => Promise < typeof RubyJsRubyRuntime > ) : Promise < RubyVM > {
87
+ static async _instantiate ( initComponent : ( _ : typeof RubyJsJsRuntime ) => Promise < typeof RubyJsRubyRuntime > , options : {
88
+ args ?: string [ ] ,
89
+ } ) : Promise < RubyVM > {
88
90
const binding = new ComponentBinding ( )
89
91
const vm = new RubyVM ( binding ) ;
90
92
const component = await initComponent ( {
@@ -95,6 +97,7 @@ export class RubyVM {
95
97
JsAbiValue : Object ,
96
98
} ) ;
97
99
binding . setUnderlying ( component ) ;
100
+ vm . initialize ( options . args ) ;
98
101
return vm
99
102
}
100
103
You can’t perform that action at this time.
0 commit comments