From e70705c0f18a9317e33dcdd3189a5cb4c553a4cd 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 29f0bc18c0d7b0..22b09e83b79e6a 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 ec44c09f517ab0..8bccfceef3c521 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;