Skip to content

Commit 6100e12

Browse files
committed
fs: move type checking to js
PR-URL: #17667 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 92fc14a commit 6100e12

24 files changed

+800
-447
lines changed

doc/api/errors.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,12 @@ Encoding provided to `util.TextDecoder()` API was not one of the
783783
A `Promise` that was callbackified via `util.callbackify()` was rejected with a
784784
falsy value.
785785

786+
<a id="ERR_FS_INVALID_SYMLINK_TYPE"></a>
787+
### ERR_FS_INVALID_SYMLINK_TYPE
788+
789+
An invalid symlink type was passed to the [`fs.symlink()`][] or
790+
[`fs.symlinkSync()`][] methods.
791+
786792
<a id="ERR_HTTP_HEADERS_SENT"></a>
787793
### ERR_HTTP_HEADERS_SENT
788794

@@ -1609,6 +1615,8 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.
16091615
[`dgram.createSocket()`]: dgram.html#dgram_dgram_createsocket_options_callback
16101616
[`ERR_INVALID_ARG_TYPE`]: #ERR_INVALID_ARG_TYPE
16111617
[`EventEmitter`]: events.html#events_class_eventemitter
1618+
[`fs.symlink()`]: fs.html#fs_symlink
1619+
[`fs.symlinkSync()`]: fs.html#fs_symlinksync
16121620
[`hash.digest()`]: crypto.html#crypto_hash_digest_encoding
16131621
[`hash.update()`]: crypto.html#crypto_hash_update_data_inputencoding
16141622
[`readable._read()`]: stream.html#stream_readable_read_size_1

0 commit comments

Comments
 (0)