Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/node_realm-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "node_context_data.h"
#include "node_realm.h"
#include "util-inl.h"

namespace node {

Expand Down Expand Up @@ -46,6 +47,10 @@ inline v8::Isolate* Realm::isolate() const {
return isolate_;
}

inline v8::Local<v8::Context> Realm::context() const {
return PersistentToLocal::Strong(context_);
}

inline Realm::Kind Realm::kind() const {
return kind_;
}
Expand Down
4 changes: 0 additions & 4 deletions src/node_realm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ void Realm::VerifyNoStrongBaseObjects() {
});
}

v8::Local<v8::Context> Realm::context() const {
return PersistentToLocal::Strong(context_);
}

// Per-realm strong value accessors. The per-realm values should avoid being
// accessed across realms.
#define V(PropertyName, TypeName) \
Expand Down
Loading