, m_context(m_isolate, context)
, m_world(world)
, m_perContextData(V8PerContextData::create(context))
+ , m_globalObjectDetached(false)
{
ASSERT(m_world);
m_context.setWeak(this, &weakCallback);
ASSERT(m_context.isEmpty());
}
+void ScriptState::detachGlobalObject()
+{
+ ASSERT(!m_context.isEmpty());
+ context()->DetachGlobal();
+ m_globalObjectDetached = true;
+}
+
bool ScriptState::evalEnabled() const
{
v8::HandleScope handleScope(m_isolate);