diff options
author | Sarat Addepalli <sarat.addepalli@paytm.com> | 2018-08-20 12:41:40 +0530 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-08-27 23:40:10 +0200 |
commit | 68dff4a67b7222770f90fc5d9bdd884f8db4a24b (patch) | |
tree | 2815e9c4d88b4c0e7ab5897c38878217cbeb3ba8 /lib/internal/errors.js | |
parent | 31b3273eaa02ee12188a4c7a64a0d4adfbe22670 (diff) | |
download | android-node-v8-68dff4a67b7222770f90fc5d9bdd884f8db4a24b.tar.gz android-node-v8-68dff4a67b7222770f90fc5d9bdd884f8db4a24b.tar.bz2 android-node-v8-68dff4a67b7222770f90fc5d9bdd884f8db4a24b.zip |
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 <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib/internal/errors.js')
-rw-r--r-- | lib/internal/errors.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 899979e5cc..cc1e84639e 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -712,7 +712,8 @@ E('ERR_INVALID_RETURN_VALUE', (input, name, value) => { ` function but got ${type}.`; }, TypeError); E('ERR_INVALID_SYNC_FORK_INPUT', - 'Asynchronous forks do not support Buffer, Uint8Array or string input: %s', + 'Asynchronous forks do not support ' + + 'Buffer, TypedArray, DataView or string input: %s', TypeError); E('ERR_INVALID_THIS', 'Value of "this" must be of type %s', TypeError); E('ERR_INVALID_TUPLE', '%s must be an iterable %s tuple', TypeError); |