summaryrefslogtreecommitdiff
path: root/src/node_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_util.cc')
-rw-r--r--src/node_util.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/node_util.cc b/src/node_util.cc
index cf26eca692..fa30ae4472 100644
--- a/src/node_util.cc
+++ b/src/node_util.cc
@@ -135,10 +135,7 @@ static void SetHiddenValue(const FunctionCallbackInfo<Value>& args) {
void StartSigintWatchdog(const FunctionCallbackInfo<Value>& args) {
int ret = SigintWatchdogHelper::GetInstance()->Start();
- if (ret != 0) {
- Environment* env = Environment::GetCurrent(args);
- env->ThrowErrnoException(ret, "StartSigintWatchdog");
- }
+ args.GetReturnValue().Set(ret == 0);
}