Skip to content

Commit fcff6d8

Browse files
authored
[WasmFS] Simplify cDefs in the Node backend. NFC (#26594)
In line with commit f1dfaf3. Split out from #24733.
1 parent 61b4b37 commit fcff6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/libwasmfs_node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ addToLibrary({
3131
if (wasmfsNodeIsWindows) {
3232
// Node.js on Windows never represents permission bit 'x', so
3333
// propagate read bits to execute bits
34-
stat.mode |= (stat.mode & {{{ cDefs.S_IRUSR | cDefs.S_IRGRP | cDefs.S_IROTH }}}) >> 2;
34+
stat.mode |= (stat.mode & {{{ cDefs.S_IRUGO }}}) >> 2;
3535
}
3636
return stat;
3737
},

0 commit comments

Comments
 (0)