Commit c86c1eea authored by Sakthipriyan Vairamani's avatar Sakthipriyan Vairamani
Browse files

fs: validate args of truncate functions in js

This patch

 1. moves the basic validation of arguments to `truncate` family
    of functions to the JavaScript layer from the C++ layer.

 2. makes sure that the File Descriptors are validated strictly.

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


Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 9359de9d
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