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

Function close

src/lib/libproxyfs.js:173–180  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

171 }
172 },
173 close(stream) {
174 try {
175 stream.node.mount.opts.fs.close(stream.nfd);
176 } catch(e) {
177 if (!e.code) throw e;
178 throw new FS.ErrnoError(ERRNO_CODES[e.code]);
179 }
180 },
181 read(stream, buffer, offset, length, position) {
182 try {
183 return stream.node.mount.opts.fs.read(stream.nfd, buffer, offset, length, position);

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected