From 80fc01cb348745e9991750cd320669dbedc44b7d 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 06bab58bc8d9c4..6e606043171321 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -679,6 +679,10 @@ configuration at startup.