summaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env-inl.h')
-rw-r--r--src/env-inl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index 36f8506baf..9e10cb2414 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -1106,10 +1106,13 @@ void AsyncRequest::set_stopped(bool flag) {
inline void Environment::set_ ## PropertyName(v8::Local<TypeName> value) { \
PropertyName ## _.Reset(isolate(), value); \
}
- ENVIRONMENT_STRONG_PERSISTENT_PROPERTIES(V)
+ ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES(V)
ENVIRONMENT_STRONG_PERSISTENT_VALUES(V)
#undef V
+ inline v8::Local<v8::Context> Environment::context() const {
+ return PersistentToLocal::Strong(context_);
+ }
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS