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

Function convertNodeCode

src/lib/libnodefs.js:41–47  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

39#endif
40 },
41 convertNodeCode(e) {
42 var code = e.code;
43#if ASSERTIONS
44 assert(code in ERRNO_CODES, `unexpected node error code: ${code} (${e})`);
45#endif
46 return ERRNO_CODES[code];
47 },
48 tryFSOperation(f) {
49 try {
50 return f();

Callers

nothing calls this directly

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected