MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / init

Function init

src/lib/libtty.js:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 $TTY: {
20 ttys: [],
21 init() {
22 // https://github.com/emscripten-core/emscripten/pull/1555
23 // if (ENVIRONMENT_IS_NODE) {
24 // // currently, FS.init does not distinguish if process.stdin is a file or TTY
25 // // device, it always assumes it's a TTY device. because of this, we're forcing
26 // // process.stdin to UTF8 encoding to at least make stdin reading compatible
27 // // with text files until FS.init can be refactored.
28 // process.stdin.setEncoding('utf8');
29 // }
30 },
31 shutdown() {
32 // https://github.com/emscripten-core/emscripten/pull/1555
33 // if (ENVIRONMENT_IS_NODE) {

Callers 3

liblz4.jsFile · 0.70
libfs.jsFile · 0.70
libexceptions.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected