@@ -102,9 +102,9 @@ class DefaultBrowserThreadRegistry {
102102/** @type {import('./browser.d.ts').defaultBrowserSetup } */
103103export async function defaultBrowserSetup ( options ) {
104104/* #if IS_WASI */
105- const args = options ? .args ?? [ ]
106- const onStdoutLine = options ? .onStdoutLine ?? ( ( line ) => console . log ( line ) )
107- const onStderrLine = options ? .onStderrLine ?? ( ( line ) => console . error ( line ) )
105+ const args = options . args ?? [ ]
106+ const onStdoutLine = options . onStdoutLine ?? ( ( line ) => console . log ( line ) )
107+ const onStderrLine = options . onStderrLine ?? ( ( line ) => console . error ( line ) )
108108 const wasi = new WASI ( /* args */ [ MODULE_PATH , ...args ] , /* env */ [ ] , /* fd */ [
109109 new OpenFile ( new File ( [ ] ) ) , // stdin
110110 ConsoleStdout . lineBuffered ( ( stdout ) => {
@@ -118,13 +118,13 @@ export async function defaultBrowserSetup(options) {
118118/* #endif */
119119/* #if USE_SHARED_MEMORY */
120120 const memory = new WebAssembly . Memory ( MEMORY_TYPE ) ;
121- const threadChannel = new DefaultBrowserThreadRegistry ( options ? .spawnWorker || createDefaultWorkerFactory ( ) )
121+ const threadChannel = new DefaultBrowserThreadRegistry ( options . spawnWorker || createDefaultWorkerFactory ( ) )
122122/* #endif */
123123
124124 return {
125- module : options ? .module ,
125+ module : options . module ,
126126/* #if HAS_IMPORTS */
127- getImports ( ) { return options ? .getImports ( ) } ,
127+ getImports ( ) { return options . getImports ( ) } ,
128128/* #endif */
129129/* #if IS_WASI */
130130 wasi : Object . assign ( wasi , {
0 commit comments