Revision: 7249
Author: [email protected]
Date: Thu Mar 17 13:18:39 2011
Log: [Isolates] Fix the crash in AssertNoContextChange ctor when
current context is NULL.
Review URL: http://codereview.chromium.org/6665063
http://code.google.com/p/v8/source/detail?r=7249
Modified:
/branches/experimental/isolates/src/isolate.h
=======================================
--- /branches/experimental/isolates/src/isolate.h Wed Mar 16 12:04:32 2011
+++ /branches/experimental/isolates/src/isolate.h Thu Mar 17 13:18:39 2011
@@ -1180,7 +1180,8 @@
#ifdef DEBUG
public:
AssertNoContextChange() :
- context_(Isolate::Current()->context()) {
+ scope_(Isolate::Current()),
+ context_(Isolate::Current()->context(), Isolate::Current()) {
}
~AssertNoContextChange() {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev