Unverified Commit 8231cc4d authored by Rongjian Zhang's avatar Rongjian Zhang Committed by James M Snell
Browse files

fs: use `assert` in `fsCall` argument checking

In the user perspective, it's not an arguemnt type error. Replace it
with an `assert` expression.

PR-URL: https://github.com/nodejs/node/pull/38519
Refs: https://coverage.nodejs.org/coverage-68e6673224365120/lib/internal/fs/promises.js.html#L268


Reviewed-By: default avatarAntoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: default avatarDarshan Sen <raisinten@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 7eb28e31
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment