void JSGlobalObject::init(JSObject* thisValue) { ASSERT(vm().apiLock().currentThreadIsHoldingLock()); setGlobalThis(vm(), thisValue); JSGlobalObject::globalExec()->init(0, 0, this, CallFrame::noCaller(), 0, 0); m_debugger = 0; reset(prototype()); }
void JSGlobalObject::init(JSObject* thisValue) { ASSERT(vm().currentThreadIsHoldingAPILock()); setGlobalThis(vm(), thisValue); JSGlobalObject::globalExec()->init(0, 0, this, CallFrame::noCaller(), 0, 0); m_debugger = 0; #if ENABLE(REMOTE_INSPECTOR) m_inspectorController = std::make_unique<Inspector::JSGlobalObjectInspectorController>(*this); m_inspectorDebuggable = std::make_unique<JSGlobalObjectDebuggable>(*this); m_inspectorDebuggable->init(); m_inspectorDebuggable->setRemoteDebuggingAllowed(true); m_consoleClient = m_inspectorController->consoleClient(); #endif reset(prototype()); }