fix regression in BunJSGlobalObjectDebuggable from most recent webkit upgrade (#14675)

This commit is contained in:
Meghan Denny
2024-10-18 22:31:39 -07:00
committed by GitHub
parent 64d0b626b9
commit 663331c56f

View File

@@ -41,6 +41,11 @@ public:
{
}
static Ref<BunJSGlobalObjectDebuggable> create(JSGlobalObject& globalObject)
{
return adoptRef(*new BunJSGlobalObjectDebuggable(globalObject));
}
void pauseWaitingForAutomaticInspection() override
{
}
@@ -449,7 +454,8 @@ extern "C" void Bun__ensureDebugger(ScriptExecutionContextIdentifier scriptId, b
auto* globalObject = ScriptExecutionContext::getScriptExecutionContext(scriptId)->jsGlobalObject();
globalObject->m_inspectorController = makeUnique<Inspector::JSGlobalObjectInspectorController>(*globalObject, Bun::BunInjectedScriptHost::create());
globalObject->m_inspectorDebuggable = JSGlobalObjectDebuggable::create(*globalObject);
globalObject->m_inspectorDebuggable = BunJSGlobalObjectDebuggable::create(*globalObject);
globalObject->m_inspectorDebuggable->init();
globalObject->setInspectable(true);