Skip to content

fs: adjust typecheck for `type` in `fs.symlink()`

Alternative to: https://github.com/nodejs/node/pull/44641

  • Throws TypeError instead of Error
  • Enables autodetection on Windows if type === undefined (as intended in https://github.com/nodejs/node/pull/23724)
  • Explicitly disallows unknown strings and non-string values

Merge request reports

Loading