| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index d6adf6210f3e5dfd8bc3594a1d5b7d5808cf4ab0..5ee4af295f84cc12c2c0f606bb41a6f8f25e72b1 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -4704,6 +4704,12 @@ bool Context::InContext() {
|
| }
|
|
|
|
|
| +v8::Isolate* Context::GetIsolate() {
|
| + i::Handle<i::Context> env = Utils::OpenHandle(this);
|
| + return reinterpret_cast<Isolate*>(env->GetIsolate());
|
| +}
|
| +
|
| +
|
| v8::Local<v8::Context> Context::GetEntered() {
|
| i::Isolate* isolate = i::Isolate::Current();
|
| if (!EnsureInitializedForIsolate(isolate, "v8::Context::GetEntered()")) {
|
|
|