Skip to content

Commit 5de7a87

Browse files
committed
fixup! src: coerce spawnSync args to string once
1 parent 0025e48 commit 5de7a87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/spawn_sync.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,7 @@ Maybe<int> SyncProcessRunner::CopyJsStringArray(Local<Value> js_value,
11651165
// null pointer.
11661166
list_size = (length + 1) * sizeof *list;
11671167

1168-
// Convert all array elements to string. Modify the js object itself if
1169-
// needed - it's okay since we cloned the original object. Also compute the
1168+
// Convert all array elements to string. Also compute the
11701169
// length of all strings, including room for a null terminator after every
11711170
// string. Align strings to cache lines.
11721171
for (uint32_t i = 0; i < length; i++) {

0 commit comments

Comments
 (0)