diff options
author | Eugene Ostroukhov <eostroukhov@google.com> | 2017-04-24 10:06:17 -0700 |
---|---|---|
committer | Eugene Ostroukhov <eostroukhov@chromium.org> | 2017-08-11 11:25:31 -0700 |
commit | 63fc89a6a05f7ef8475fc509aa278777c297f460 (patch) | |
tree | 27c48ecf48b59c195c4e65bb561b572eb469c077 /src/env-inl.h | |
parent | 73c59bbbf9bd2a53ab322cb822ae718fabef7b6c (diff) | |
download | android-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.h | 3 |
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) { |