From 154da1f0d31aa8cdbf2975a3ca03cb5d649b7de7 Mon Sep 17 00:00:00 2001 From: legendecas Date: Fri, 6 Mar 2020 12:40:10 +0800 Subject: [PATCH] src: add missing namespace using statements in node_watchdog.h Although these `using`s can derived from other header files, it will be better to be self-contained. PR-URL: https://github.com/nodejs/node/pull/32117 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: David Carlier Reviewed-By: Richard Lau Reviewed-By: Anna Henningsen --- src/node_watchdog.cc | 1 + src/node_watchdog.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/node_watchdog.cc b/src/node_watchdog.cc index 76744a9ef416f7..107a25bc977bd3 100644 --- a/src/node_watchdog.cc +++ b/src/node_watchdog.cc @@ -34,6 +34,7 @@ namespace node { using v8::Context; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; +using v8::Local; using v8::Object; using v8::Value; diff --git a/src/node_watchdog.h b/src/node_watchdog.h index bd960cb1ec8b18..eb99c3b72a516b 100644 --- a/src/node_watchdog.h +++ b/src/node_watchdog.h @@ -83,10 +83,10 @@ class SigintWatchdog : public SigintWatchdogBase { class TraceSigintWatchdog : public HandleWrap, public SigintWatchdogBase { public: - static void Init(Environment* env, Local target); + static void Init(Environment* env, v8::Local target); static void New(const v8::FunctionCallbackInfo& args); - static void Start(const v8::FunctionCallbackInfo& args); - static void Stop(const v8::FunctionCallbackInfo& args); + static void Start(const v8::FunctionCallbackInfo& args); + static void Stop(const v8::FunctionCallbackInfo& args); SignalPropagation HandleSigint() override; @@ -99,7 +99,7 @@ class TraceSigintWatchdog : public HandleWrap, public SigintWatchdogBase { private: enum class SignalFlags { None, FromIdle, FromInterrupt }; - TraceSigintWatchdog(Environment* env, Local object); + TraceSigintWatchdog(Environment* env, v8::Local object); void HandleInterrupt(); bool interrupting = false;