mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
fix regression in BunJSGlobalObjectDebuggable from most recent webkit upgrade (#14675)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user