From 68dff4a67b7222770f90fc5d9bdd884f8db4a24b Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Mon, 20 Aug 2018 12:41:40 +0530 Subject: [PATCH] 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. PR-URL: https://github.com/nodejs/node/pull/22409 Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat --- 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..e15829ce3ffccf 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -688,6 +688,10 @@ configuration at startup.