Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@google.com>2017-04-24 20:06:17 +0300
committerEugene Ostroukhov <eostroukhov@chromium.org>2017-08-11 21:25:31 +0300
commit63fc89a6a05f7ef8475fc509aa278777c297f460 (patch)
tree27c48ecf48b59c195c4e65bb561b572eb469c077 /src/inspector_agent.h
parent73c59bbbf9bd2a53ab322cb822ae718fabef7b6c (diff)
inspector: support extra contexts
This enables inspector support for contexts created using the vm module. PR-URL: https://github.com/nodejs/node/pull/14465 Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r--src/inspector_agent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h
index 80967212cd7..cf9a8bff864 100644
--- a/src/inspector_agent.h
+++ b/src/inspector_agent.h
@@ -96,6 +96,7 @@ class Agent {
void RequestIoThreadStart();
DebugOptions& options() { return debug_options_; }
+ void ContextCreated(v8::Local<v8::Context> context);
private:
node::Environment* parent_env_;
@@ -105,6 +106,7 @@ class Agent {
bool enabled_;
std::string path_;
DebugOptions debug_options_;
+ int next_context_number_;
};
} // namespace inspector