Index: Source/bindings/v8/DOMDataStore.cpp |
diff --git a/Source/bindings/v8/DOMDataStore.cpp b/Source/bindings/v8/DOMDataStore.cpp |
index aa739a632c46631383db04d79f0e8edf89c363bf..b2fc818a4a71d487ac585290255920eb853c95a9 100644 |
--- a/Source/bindings/v8/DOMDataStore.cpp |
+++ b/Source/bindings/v8/DOMDataStore.cpp |
@@ -37,8 +37,8 @@ |
namespace WebCore { |
-DOMDataStore::DOMDataStore(WrapperWorldType type) |
- : m_type(type) |
+DOMDataStore::DOMDataStore(bool isMainWorld) |
+ : m_isMainWorld(isMainWorld) |
, m_wrapperMap(v8::Isolate::GetCurrent()) // FIXME Don't call GetCurrent twice. |
{ |
V8PerIsolateData::current()->registerDOMDataStore(this); |
@@ -46,7 +46,7 @@ DOMDataStore::DOMDataStore(WrapperWorldType type) |
DOMDataStore::~DOMDataStore() |
{ |
- ASSERT(m_type != MainWorld); // We never actually destruct the main world's DOMDataStore. |
+ ASSERT(!m_isMainWorld); // We never actually destruct the main world's DOMDataStore. |
V8PerIsolateData::current()->unregisterDOMDataStore(this); |
m_wrapperMap.clear(); |
} |