Skip to content

Commit ef99b68

Browse files
aduh95meyfa
andauthored
Apply suggestions from code review
Co-authored-by: Fabian Meyer <[email protected]>
1 parent 01d4946 commit ef99b68

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/api/deprecations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3536,7 +3536,7 @@ The [`util.types.isWebAssemblyCompiledModule`][] API is deprecated. Please use
35363536
<!-- YAML
35373537
changes:
35383538
- version: REPLACEME
3539-
pr-url: https://github.com/nodejs/node/pull/00000
3539+
pr-url: https://github.com/nodejs/node/pull/51050
35403540
description: Runtime deprecation.
35413541
- version: REPLACEME
35423542
pr-url: https://github.com/nodejs/node/pull/51020

lib/internal/fs/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ ObjectDefineProperty(Dirent.prototype, 'path', {
220220
__proto__: null,
221221
get: deprecate(function() {
222222
return this.parentPath;
223-
}, 'dirent.path is deprecated in favor of dirent.parentName', 'DEP0178'),
223+
}, 'dirent.path is deprecated in favor of dirent.parentPath', 'DEP0178'),
224224
configurable: true,
225225
enumerable: false,
226226
});

test/parallel/test-fs-utils-get-dirents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const filename = 'foo';
9090
assert.strictEqual(dirent.name, filenameBuffer);
9191
common.expectWarning(
9292
'DeprecationWarning',
93-
'dirent.path is deprecated in favor of dirent.parentName',
93+
'dirent.path is deprecated in favor of dirent.parentPath',
9494
'DEP0178');
9595
assert.deepStrictEqual(dirent.path, Buffer.from(tmpdir.resolve(`${filename}/`)));
9696
},

0 commit comments

Comments
 (0)