diff --git a/src/bun.js/bindings/ScriptExecutionContext.h b/src/bun.js/bindings/ScriptExecutionContext.h index ade3423b08..b4e7b937d3 100644 --- a/src/bun.js/bindings/ScriptExecutionContext.h +++ b/src/bun.js/bindings/ScriptExecutionContext.h @@ -164,7 +164,8 @@ public: static ScriptExecutionContext* getMainThreadScriptExecutionContext(); - bool canSendMessage() { + bool canSendMessage() + { static constexpr size_t maxMessagesPerTick = 1000; return m_messagesSentThisTick < maxMessagesPerTick; } diff --git a/src/bun.js/bindings/ZigGlobalObject.cpp b/src/bun.js/bindings/ZigGlobalObject.cpp index c9fdf6d79d..b31dc691eb 100644 --- a/src/bun.js/bindings/ZigGlobalObject.cpp +++ b/src/bun.js/bindings/ZigGlobalObject.cpp @@ -4467,4 +4467,4 @@ JSC_DEFINE_HOST_FUNCTION(jsFunctionCreateFunctionThatMasqueradesAsUndefined, (JS scope.assertNoException(); auto* func = InternalFunction::createFunctionThatMasqueradesAsUndefined(vm, leixcalGlobalObject, count, name, jsFunctionNotImplemented); return JSC::JSValue::encode(func); -} \ No newline at end of file +}