aboutsummaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@google.com>2017-04-24 10:06:17 -0700
committerEugene Ostroukhov <eostroukhov@chromium.org>2017-08-11 11:25:31 -0700
commit63fc89a6a05f7ef8475fc509aa278777c297f460 (patch)
tree27c48ecf48b59c195c4e65bb561b572eb469c077 /src/env-inl.h
parent73c59bbbf9bd2a53ab322cb822ae718fabef7b6c (diff)
downloadandroid-node-v8-63fc89a6a05f7ef8475fc509aa278777c297f460.tar.gz
android-node-v8-63fc89a6a05f7ef8475fc509aa278777c297f460.tar.bz2
android-node-v8-63fc89a6a05f7ef8475fc509aa278777c297f460.zip
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/env-inl.h')
-rw-r--r--src/env-inl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index afe15f17aa..f3ca8882b0 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -259,6 +259,9 @@ inline void Environment::TickInfo::set_index(uint32_t value) {
inline void Environment::AssignToContext(v8::Local<v8::Context> context) {
context->SetAlignedPointerInEmbedderData(kContextEmbedderDataIndex, this);
+#if HAVE_INSPECTOR
+ inspector_agent()->ContextCreated(context);
+#endif // HAVE_INSPECTOR
}
inline Environment* Environment::GetCurrent(v8::Isolate* isolate) {