(stream)
| 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); |