You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FS.mkdir('/tmp');FS.mkdir('/home');FS.mkdir('/home/web_user');FS.mkdir('/dev');FS.mkdev('/dev/null',FS.makedev(1,3));/dev/tty/dev/tty1FS.createDevice('/dev','random',random_device);FS.createDevice('/dev','urandom',random_device);// we're not going to emulate the actual shm device,// just create the tmp dirs that reside in it commonlyFS.mkdir('/dev/shm');FS.mkdir('/dev/shm/tmp');FS.mkdir('/proc');FS.mkdir('/proc/self');FS.mkdir('/proc/self/fd');if(Module['stdin']){FS.createDevice('/dev','stdin',Module['stdin']);}else{FS.symlink('/dev/tty','/dev/stdin');}if(Module['stdout']){FS.createDevice('/dev','stdout',null,Module['stdout']);}else{FS.symlink('/dev/tty','/dev/stdout');}if(Module['stderr']){FS.createDevice('/dev','stderr',null,Module['stderr']);}else{FS.symlink('/dev/tty1','/dev/stderr');}// open default streams for the stdin, stdout and stderr devicesvarstdin=FS.open('/dev/stdin','r');varstdout=FS.open('/dev/stdout','w');varstderr=FS.open('/dev/stderr','w');