Revision: 8987
Author: [email protected]
Date: Mon Aug 22 06:04:14 2011
Log: 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
http://code.google.com/p/v8/source/detail?r=8987
Modified:
/branches/bleeding_edge/src/api.cc
=======================================
--- /branches/bleeding_edge/src/api.cc Tue Aug 16 07:24:12 2011
+++ /branches/bleeding_edge/src/api.cc Mon Aug 22 06:04:14 2011
@@ -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