Reviewers: Vitaly Repeshko, Vyacheslav Egorov,

Description:
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.

Please review this at http://codereview.chromium.org/7686005/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/api.cc


Index: src/api.cc
===================================================================
--- src/api.cc  (revision 8975)
+++ src/api.cc  (working copy)
@@ -4118,7 +4118,7 @@

 v8::Local<v8::Context> Context::GetEntered() {
   i::Isolate* isolate = i::Isolate::Current();
-  if (IsDeadCheck(isolate, "v8::Context::GetEntered()")) {
+  if (!EnsureInitializedForIsolate(isolate, "v8::Context::GetEntered()")) {
     return Local<Context>();
   }
   i::Handle<i::Object> last =


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to