diff --git a/src/process_wrap.cc b/src/process_wrap.cc index 4a434377c6ec96..4c9eb42c0127d9 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -163,9 +163,9 @@ class ProcessWrap : public HandleWrap { // options.cwd Local cwd_v = js_options->Get(String::NewSymbol("cwd")); String::Utf8Value cwd(cwd_v->IsString() ? cwd_v : Local()); - if (cwd.length() > 0) { + if (cwd.length() > 0) { options.cwd = *cwd; - } + } // options.env Local env_v = js_options->Get(String::NewSymbol("envPairs"));