From fdc9090c85409c77df16cfbd9e1403e847d6a815 Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Mon, 20 Aug 2018 12:41:40 +0530 Subject: [PATCH 1/2] child_process: allow typed arrays for input doc: Update child_process docs, stating typed arrays are allowed. error: Update error message for `ERR_INVALID_SYNC_FORK_INPUT` lib: Use isArrayBufferView instead of isUint8Array test: Update test-child-process-spawnsync-input to test for all typed arrays and data view. --- doc/api/child_process.md | 27 ++++++++++++++----- doc/api/errors.md | 4 +-- lib/child_process.js | 9 ++++--- lib/internal/child_process.js | 4 +-- lib/internal/errors.js | 3 ++- .../test-child-process-spawnsync-input.js | 21 +++++++++------ 6 files changed, 46 insertions(+), 22 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index d6a79421889a1e..90fa81313d4218 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -688,6 +688,10 @@ configuration at startup.