From 9085bbcaabdfb4d9ff6582027b8e1c3cebd02f08 Mon Sep 17 00:00:00 2001 From: alii <25351731+alii@users.noreply.github.com> Date: Tue, 3 Jun 2025 04:27:04 +0000 Subject: [PATCH] `bun run clang-format` --- src/bun.js/bindings/ScriptExecutionContext.h | 3 ++- src/bun.js/bindings/ZigGlobalObject.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 +}