summaryrefslogtreecommitdiff
path: root/src/inspector_agent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r--src/inspector_agent.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h
index 64e4202ee8..21cf4c9f12 100644
--- a/src/inspector_agent.h
+++ b/src/inspector_agent.h
@@ -10,7 +10,7 @@
#endif
#include "node_debug_options.h"
-#include "node_platform.h"
+#include "node_persistent.h"
#include "v8.h"
namespace v8_inspector {
@@ -20,6 +20,7 @@ class StringView;
namespace node {
// Forward declaration to break recursive dependency chain with src/env.h.
class Environment;
+class NodePlatform;
struct ContextInfo;
namespace inspector {
@@ -102,7 +103,7 @@ class Agent {
private:
void ToggleAsyncHook(v8::Isolate* isolate,
- const Persistent<v8::Function>& fn);
+ const node::Persistent<v8::Function>& fn);
node::Environment* parent_env_;
std::shared_ptr<NodeInspectorClient> client_;
@@ -113,8 +114,8 @@ class Agent {
bool pending_enable_async_hook_;
bool pending_disable_async_hook_;
- Persistent<v8::Function> enable_async_hook_function_;
- Persistent<v8::Function> disable_async_hook_function_;
+ node::Persistent<v8::Function> enable_async_hook_function_;
+ node::Persistent<v8::Function> disable_async_hook_function_;
};
} // namespace inspector