Skip to content

Commit

Permalink
src: add missing namespace using statements in node_watchdog.h
Browse files Browse the repository at this point in the history
Although these `using`s can derived from other header files, it will
be better to be self-contained.

PR-URL: #32117
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
legendecas authored and MylesBorins committed Mar 9, 2020
1 parent c106a85 commit bd75688
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/node_watchdog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace node {
using v8::Context;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
using v8::Local;
using v8::Object;
using v8::Value;

Expand Down
8 changes: 4 additions & 4 deletions src/node_watchdog.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ class SigintWatchdog : public SigintWatchdogBase {

class TraceSigintWatchdog : public HandleWrap, public SigintWatchdogBase {
public:
static void Init(Environment* env, Local<v8::Object> target);
static void Init(Environment* env, v8::Local<v8::Object> target);
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Start(const v8::FunctionCallbackInfo<Value>& args);
static void Stop(const v8::FunctionCallbackInfo<Value>& args);
static void Start(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Stop(const v8::FunctionCallbackInfo<v8::Value>& args);

SignalPropagation HandleSigint() override;

Expand All @@ -99,7 +99,7 @@ class TraceSigintWatchdog : public HandleWrap, public SigintWatchdogBase {
private:
enum class SignalFlags { None, FromIdle, FromInterrupt };

TraceSigintWatchdog(Environment* env, Local<v8::Object> object);
TraceSigintWatchdog(Environment* env, v8::Local<v8::Object> object);
void HandleInterrupt();

bool interrupting = false;
Expand Down

0 comments on commit bd75688

Please sign in to comment.