We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85a87ed commit 323606dCopy full SHA for 323606d
index.js
@@ -82,6 +82,13 @@ class FSMonitor {
82
continue;
83
}
84
85
+ const descriptor = Object.getOwnPropertyDescriptor(fs, member);
86
+
87
+ if (descriptor && descriptor.get && !descriptor.set) {
88
+ // Skip getter-only properties (like Utf8Stream, F_OK, etc. in Node.js 24+)
89
+ continue;
90
+ }
91
92
let old = fs[member];
93
94
if (typeof old === 'function') {
0 commit comments