Skip to content

Commit e3aa3a3

Browse files
committed
fixup! fixup! src: coerce spawnSync args to string once
1 parent 3b101ad commit e3aa3a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spawn_sync.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ using v8::Isolate;
4444
using v8::Just;
4545
using v8::JustVoid;
4646
using v8::Local;
47+
using v8::LocalVector;
4748
using v8::Maybe;
4849
using v8::MaybeLocal;
4950
using v8::Nothing;
@@ -1159,7 +1160,7 @@ Maybe<int> SyncProcessRunner::CopyJsStringArray(Local<Value> js_value,
11591160
length = js_array->Length();
11601161
data_size = 0;
11611162

1162-
std::vector<Local<String>> values(length);
1163+
LocalVector<String> values(isolate, length);
11631164

11641165
// Index has a pointer to every string element, plus one more for a final
11651166
// null pointer.

0 commit comments

Comments
 (0)