| 34 | ENVIRONMENT_IS_WEB = typeof window === 'object'; ENVIRONMENT_IS_WORKER = typeof importScripts === 'function'; ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof process.versions === 'object' && typeof process.versions.node === 'string'; ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER; let scriptDirectory = ''; |
| 35 | |
| 36 | function locateFile(path) |
| 37 | { |
| 38 | if (Module.locateFile) { return Module.locateFile(path, scriptDirectory); } |
| 39 | |
| 40 | return scriptDirectory + path; |
| 41 | } let read_; let readAsync; let readBinary; let setWindowTitle; let nodeFS; let nodePath; |
| 42 | |
| 43 | if (ENVIRONMENT_IS_NODE) |
| 44 | { |