diff options
author | Geoff Gustafson <geoff@linux.intel.com> | 2017-03-14 13:25:49 -0700 |
---|---|---|
committer | Jimmy Huang <jimmy.huang@linux.intel.com> | 2017-03-14 13:25:49 -0700 |
commit | 783af0f0fa918110f4e688139290f44c3314609f (patch) | |
tree | b0ef6af32022331ae0944764b6d34a78dc9e1916 /docs/fs.md | |
parent | 873efad512cff3285ae6236a06968de644582c51 (diff) |
[util] Add macros/functions to standardize argument validation (#817)
The new ZJS_VALIDATE_ARGS macro and related macros are to be used at
the top of any JerryScript C binding to verify the quantity and types
of arguments, and return standard exceptions if there is a problem.
The comments above the macros in zjs_util.h explain the details of how
they are to be used.
Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
Diffstat (limited to 'docs/fs.md')
-rw-r--r-- | docs/fs.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ Remove a directory from the file system. `path` is the name of the directory. ### FS.writeSync -`number writeSync(object fd, [String|Buffer] data, number offset, number length, optional number position);` +`number writeSync(object fd, Buffer data, number offset, number length, optional number position);` Write bytes to an opened file. |