From 4b930daf1a7de1704b316b1344ed971d1749761c Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Mon, 22 Aug 2011 13:04:14 +0000 Subject: [PATCH] Ensure that the current isolate is initialized in the API function Context::GetEntered. r8833 introduced a regression in our API semantics, showing up in e.g. Chrome 12, which is fixed by this patch. Review URL: http://codereview.chromium.org/7686005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8987 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.cc b/src/api.cc index 5a5f14dc6..f6291163b 100644 --- a/src/api.cc +++ b/src/api.cc @@ -4118,7 +4118,7 @@ bool Context::InContext() { v8::Local Context::GetEntered() { i::Isolate* isolate = i::Isolate::Current(); - if (IsDeadCheck(isolate, "v8::Context::GetEntered()")) { + if (!EnsureInitializedForIsolate(isolate, "v8::Context::GetEntered()")) { return Local(); } i::Handle last = -- 2.34.1