diff options
Diffstat (limited to 'src/node_file.cc')
-rw-r--r-- | src/node_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index a2ec39858e..bb181be403 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -432,7 +432,7 @@ static Handle<Value> MKDir(const Arguments& args) { static Handle<Value> SendFile(const Arguments& args) { HandleScope scope; - if (args.Length() < 4 || + if (args.Length() < 4 || !args[0]->IsInt32() || !args[1]->IsInt32() || !args[3]->IsNumber()) { @@ -704,7 +704,7 @@ void File::Initialize(Handle<Object> target) { NODE_SET_METHOD(target, "readlink", ReadLink); NODE_SET_METHOD(target, "unlink", Unlink); NODE_SET_METHOD(target, "write", Write); - + NODE_SET_METHOD(target, "chmod", Chmod); NODE_SET_METHOD(target, "chown", Chown); |