summaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 95a239ee52..063293e788 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -661,7 +661,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) {
return req_wrap->Reject(error);
name_v.push_back(filename.ToLocalChecked());
- type_v.push_back(Integer::New(isolate, ent.type));
+ type_v.emplace_back(Integer::New(isolate, ent.type));
}
Local<Array> result = Array::New(isolate, 2);
@@ -1508,7 +1508,7 @@ static void ReadDir(const FunctionCallbackInfo<Value>& args) {
name_v.push_back(filename.ToLocalChecked());
if (with_types) {
- type_v.push_back(Integer::New(isolate, ent.type));
+ type_v.emplace_back(Integer::New(isolate, ent.type));
}
}