From 40bfda0f87c704a31bdf24ed46c13f23e9598949 Mon Sep 17 00:00:00 2001 From: pfg Date: Thu, 20 Mar 2025 21:29:12 -0700 Subject: [PATCH] Remove debug assertion failure for missing error code in switch case (#18345) --- src/bun.js/bindings/ErrorCode.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bun.js/bindings/ErrorCode.cpp b/src/bun.js/bindings/ErrorCode.cpp index 0a833206f6..84169453f0 100644 --- a/src/bun.js/bindings/ErrorCode.cpp +++ b/src/bun.js/bindings/ErrorCode.cpp @@ -2044,10 +2044,6 @@ JSC_DEFINE_HOST_FUNCTION(Bun::jsFunctionMakeErrorWithCode, (JSC::JSGlobalObject } } -#if BUN_DEBUG - ASSERT(false, "Improper use of @makeError! Add error function to ErrorCode.cpp and builtins.d.ts"); -#endif - auto&& message = callFrame->argument(1).toWTFString(globalObject); RETURN_IF_EXCEPTION(scope, {});