| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 3030b8a1e03879085f6d801682c8ac4839136d3a..6d53d91dd850f58cb0d89650fe99b44835b2a790 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -727,8 +727,9 @@ void Context::Enter() {
|
|
|
|
|
| void Context::Exit() {
|
| - i::Handle<i::Context> context = Utils::OpenHandle(this);
|
| - i::Isolate* isolate = context->GetIsolate();
|
| + // TODO(dcarney): fix this once chrome is fixed.
|
| + i::Isolate* isolate = i::Isolate::Current();
|
| + i::Handle<i::Context> context = i::Handle<i::Context>::null();
|
| ENTER_V8(isolate);
|
| if (!ApiCheck(isolate->handle_scope_implementer()->LeaveContext(context),
|
| "v8::Context::Exit()",
|
|
|