diff options
author | cjihrig <cjihrig@gmail.com> | 2017-01-12 13:43:01 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-01-17 10:47:28 -0500 |
commit | 8f3ff98f0e59926e7de3de56497cef270918629b (patch) | |
tree | f032a77adffe78da1ae95f2c7750fc8802b9a9ed /src/spawn_sync.cc | |
parent | 0f0f3d33309d3382deb33825fdffeb048f80ec18 (diff) | |
download | node-new-8f3ff98f0e59926e7de3de56497cef270918629b.tar.gz |
child_process: allow Infinity as maxBuffer value
Fixes: https://github.com/nodejs/node/pull/10767
PR-URL: https://github.com/nodejs/node/pull/10769
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/spawn_sync.cc')
-rw-r--r-- | src/spawn_sync.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc index 68e7814757..93e51af38f 100644 --- a/src/spawn_sync.cc +++ b/src/spawn_sync.cc @@ -765,8 +765,8 @@ int SyncProcessRunner::ParseOptions(Local<Value> js_value) { Local<Value> js_max_buffer = js_options->Get(env()->max_buffer_string()); if (IsSet(js_max_buffer)) { - CHECK(js_max_buffer->IsUint32()); - max_buffer_ = js_max_buffer->Uint32Value(); + CHECK(js_max_buffer->IsNumber()); + max_buffer_ = js_max_buffer->NumberValue(); } Local<Value> js_kill_signal = js_options->Get(env()->kill_signal_string()); |