Remove debug assertion failure for missing error code in switch case (#18345)

This commit is contained in:
pfg
2025-03-20 21:29:12 -07:00
committed by GitHub
parent 9888570456
commit 40bfda0f87

View File

@@ -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, {});