diff options
Diffstat (limited to 'src/node_signal_watcher.cc')
-rw-r--r-- | src/node_signal_watcher.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_signal_watcher.cc b/src/node_signal_watcher.cc index 305c06a88..d593c945b 100644 --- a/src/node_signal_watcher.cc +++ b/src/node_signal_watcher.cc @@ -51,6 +51,10 @@ void SignalWatcher::Callback(EV_P_ ev_signal *watcher, int revents) { } Handle<Value> SignalWatcher::New(const Arguments& args) { + if (!args.IsConstructCall()) { + return FromConstructorTemplate(constructor_template, args); + } + HandleScope scope; if (args.Length() != 1 || !args[0]->IsInt32()) { |