Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-01-12 21:43:01 +0300
committercjihrig <cjihrig@gmail.com>2017-01-17 18:47:28 +0300
commit8f3ff98f0e59926e7de3de56497cef270918629b (patch)
treef032a77adffe78da1ae95f2c7750fc8802b9a9ed /src/spawn_sync.cc
parent0f0f3d33309d3382deb33825fdffeb048f80ec18 (diff)
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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc
index 68e78147578..93e51af38f6 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());