mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
fs: undeprecate lchown()
uv_fs_lchown() exists, as of libuv 1.21.0. fs.lchown() can now be undeprecated. This commit also adds tests, as there were none. PR-URL: https://github.com/nodejs/node/pull/21498 Fixes: https://github.com/nodejs/node/issues/19868 Reviewed-By: Wyatt Preul <wpreul@gmail.com>
This commit is contained in:
parent
4750ce26f2
commit
7ff50f9e9c
9 changed files with 140 additions and 55 deletions
|
@ -59,6 +59,7 @@ check(fs.chmod, fs.chmodSync, 'foo\u0000bar', '0644');
|
|||
check(fs.chown, fs.chownSync, 'foo\u0000bar', 12, 34);
|
||||
check(fs.copyFile, fs.copyFileSync, 'foo\u0000bar', 'abc');
|
||||
check(fs.copyFile, fs.copyFileSync, 'abc', 'foo\u0000bar');
|
||||
check(fs.lchown, fs.lchownSync, 'foo\u0000bar', 12, 34);
|
||||
check(fs.link, fs.linkSync, 'foo\u0000bar', 'foobar');
|
||||
check(fs.link, fs.linkSync, 'foobar', 'foo\u0000bar');
|
||||
check(fs.lstat, fs.lstatSync, 'foo\u0000bar');
|
||||
|
@ -92,6 +93,7 @@ check(fs.chmod, fs.chmodSync, fileUrl, '0644');
|
|||
check(fs.chown, fs.chownSync, fileUrl, 12, 34);
|
||||
check(fs.copyFile, fs.copyFileSync, fileUrl, 'abc');
|
||||
check(fs.copyFile, fs.copyFileSync, 'abc', fileUrl);
|
||||
check(fs.lchown, fs.lchownSync, fileUrl, 12, 34);
|
||||
check(fs.link, fs.linkSync, fileUrl, 'foobar');
|
||||
check(fs.link, fs.linkSync, 'foobar', fileUrl);
|
||||
check(fs.lstat, fs.lstatSync, fileUrl);
|
||||
|
@ -122,6 +124,7 @@ check(fs.chmod, fs.chmodSync, fileUrl2, '0644');
|
|||
check(fs.chown, fs.chownSync, fileUrl2, 12, 34);
|
||||
check(fs.copyFile, fs.copyFileSync, fileUrl2, 'abc');
|
||||
check(fs.copyFile, fs.copyFileSync, 'abc', fileUrl2);
|
||||
check(fs.lchown, fs.lchownSync, fileUrl2, 12, 34);
|
||||
check(fs.link, fs.linkSync, fileUrl2, 'foobar');
|
||||
check(fs.link, fs.linkSync, 'foobar', fileUrl2);
|
||||
check(fs.lstat, fs.lstatSync, fileUrl2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue