Skip to content

Commit f865bdb

Browse files
committed
Cleanup
1 parent 260278f commit f865bdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/library_fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ FS.staticInit();
939939
return node.node_ops.getattr(node);
940940
},
941941
fstat(fd) {
942-
var stream = SYSCALLS.getStreamFromFD(fd);
942+
var stream = FS.getStreamChecked(fd);
943943
return stream.node.node_ops.getattr(stream.node);
944944
},
945945
lstat(path) {

src/library_noderawfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ addToLibrary({
8080
return stat;
8181
},
8282
fstat(fd) {
83-
var stream = SYSCALLS.getStreamFromFD(fd);
83+
var stream = FS.getStreamChecked(fd);
8484
return fs.fstatSync(stream.nfd);
8585
},
8686
chmod(path, mode, dontFollow) {

0 commit comments

Comments
 (0)