Skip to content

Commit 9ec74c9

Browse files
authored
fixup! test: add comment
1 parent 074c8dd commit 9ec74c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-vfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ common.expectWarning(
3939
process.on('warning', common.mustCall());
4040

4141
const originalStat = Module._stat;
42-
// TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching.
4342
Module._stat = function(filename) {
4443
if (!filename.startsWith(process.execPath)) {
4544
return originalStat(filename);
@@ -60,6 +59,7 @@ Module._stat = function(filename) {
6059
};
6160

6261
const originalReadFileSync = fs.readFileSync;
62+
// TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching fs.
6363
fs.readFileSync = function readFileSync(pathArgument, options) {
6464
if (!pathArgument.startsWith(process.execPath)) {
6565
return originalReadFileSync.apply(this, arguments);

0 commit comments

Comments
 (0)