mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
Remove debug assertion failure for missing error code in switch case (#18345)
This commit is contained in:
@@ -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, {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user