diff options
Diffstat (limited to 'src/node_contextify.h')
-rw-r--r-- | src/node_contextify.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/node_contextify.h b/src/node_contextify.h index 9f83740e43..b25e1a75d4 100644 --- a/src/node_contextify.h +++ b/src/node_contextify.h @@ -4,16 +4,13 @@ #include "node_internals.h" #include "node_watchdog.h" #include "base_object-inl.h" +#include "node_context_data.h" namespace node { namespace contextify { class ContextifyContext { protected: - // V8 reserves the first field in context objects for the debugger. We use the - // second field to hold a reference to the sandbox object. - enum { kSandboxObjectIndex = 1 }; - Environment* const env_; Persistent<v8::Context> context_; @@ -45,7 +42,7 @@ class ContextifyContext { inline v8::Local<v8::Object> sandbox() const { return v8::Local<v8::Object>::Cast( - context()->GetEmbedderData(kSandboxObjectIndex)); + context()->GetEmbedderData(ContextEmbedderIndex::kSandboxObject)); } private: |