File tree 2 files changed +2
-0
lines changed 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ let initializeWasCalled = false
52
52
export const initialize : typeof types . initialize = async ( options ) => {
53
53
options = common . validateInitializeOptions ( options || { } )
54
54
if ( options . wasmURL ) throw new Error ( `The "wasmURL" option only works in the browser` )
55
+ if ( options . wasmModule ) throw new Error ( `The "wasmModule" option only works in the browser` )
55
56
if ( options . worker ) throw new Error ( `The "worker" option only works in the browser` )
56
57
if ( initializeWasCalled ) throw new Error ( 'Cannot call "initialize" more than once' )
57
58
await ensureServiceIsRunning ( )
Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ let initializeWasCalled = false;
226
226
export let initialize : typeof types . initialize = options => {
227
227
options = common . validateInitializeOptions ( options || { } ) ;
228
228
if ( options . wasmURL ) throw new Error ( `The "wasmURL" option only works in the browser` )
229
+ if ( options . wasmModule ) throw new Error ( `The "wasmModule" option only works in the browser` )
229
230
if ( options . worker ) throw new Error ( `The "worker" option only works in the browser` )
230
231
if ( initializeWasCalled ) throw new Error ( 'Cannot call "initialize" more than once' )
231
232
ensureServiceIsRunning ( )
You can’t perform that action at this time.
0 commit comments