Unverified Commit e1c29f2c authored by Joyee Cheung's avatar Joyee Cheung
Browse files

src: clean up argument assertions in node_file.cc

- Cache `args.Length()`
- Use `value.As<T>()` to cast the arguments

PR-URL: https://github.com/nodejs/node/pull/18192


Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 4af1bba6
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