We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bbda5e commit a3c0014Copy full SHA for a3c0014
src/node_file.cc
@@ -1130,7 +1130,7 @@ static void FTruncate(const FunctionCallbackInfo<Value>& args) {
1130
CHECK(args[0]->IsInt32());
1131
const int fd = args[0].As<Int32>()->Value();
1132
1133
- CHECK(args[1]->IsNumber());
+ CHECK(IsSafeJsInt(args[1]));
1134
const int64_t len = args[1].As<Integer>()->Value();
1135
1136
FSReqBase* req_wrap_async = GetReqWrap(env, args[2]);
0 commit comments