Skip to content

Commit 3b101ad

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spawn_sync.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ Maybe<int> SyncProcessRunner::CopyJsStringArray(Local<Value> js_value,
11591159
length = js_array->Length();
11601160
data_size = 0;
11611161

1162-
Local<String> values[length];
1162+
std::vector<Local<String>> values(length);
11631163

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

0 commit comments

Comments
 (0)