()
| 2921 | ); |
| 2922 | }, |
| 2923 | createStandardStreams() { |
| 2924 | if (Module['stdin']) { |
| 2925 | FS.createDevice('/dev', 'stdin', Module['stdin']); |
| 2926 | } else { |
| 2927 | FS.symlink('/dev/tty', '/dev/stdin'); |
| 2928 | } |
| 2929 | if (Module['stdout']) { |
| 2930 | FS.createDevice('/dev', 'stdout', null, Module['stdout']); |
| 2931 | } else { |
| 2932 | FS.symlink('/dev/tty', '/dev/stdout'); |
| 2933 | } |
| 2934 | if (Module['stderr']) { |
| 2935 | FS.createDevice('/dev', 'stderr', null, Module['stderr']); |
| 2936 | } else { |
| 2937 | FS.symlink('/dev/tty1', '/dev/stderr'); |
| 2938 | } |
| 2939 | var stdin = FS.open('/dev/stdin', 0); |
| 2940 | var stdout = FS.open('/dev/stdout', 1); |
| 2941 | var stderr = FS.open('/dev/stderr', 1); |
| 2942 | }, |
| 2943 | ensureErrnoError() { |
| 2944 | if (FS.ErrnoError) return; |
| 2945 | FS.ErrnoError = function ErrnoError(errno, node) { |
nothing calls this directly
no outgoing calls
no test coverage detected