Enable ASAN with linux-x64-asan in CI

This commit is contained in:
Jarred Sumner
2025-05-02 10:44:09 -07:00
committed by GitHub
parent 32c1dcb70d
commit d8a69d6823
32 changed files with 615 additions and 144 deletions

View File

@@ -1584,7 +1584,7 @@ JSC_DEFINE_HOST_FUNCTION(Bun::jsFunctionMakeErrorWithCode, (JSC::JSGlobalObject
JSC::JSValue codeValue = callFrame->argument(0);
RETURN_IF_EXCEPTION(scope, {});
#if BUN_DEBUG
#if ASSERT_ENABLED
if (!codeValue.isNumber()) {
JSC::throwTypeError(globalObject, scope, "First argument to $ERR_ must be a number"_s);
return {};
@@ -1593,7 +1593,7 @@ JSC_DEFINE_HOST_FUNCTION(Bun::jsFunctionMakeErrorWithCode, (JSC::JSGlobalObject
int code = codeValue.toInt32(globalObject);
#if BUN_DEBUG
#if ASSERT_ENABLED
if (code > Bun::NODE_ERROR_COUNT - 1 || code < 0) {
JSC::throwTypeError(globalObject, scope, "Invalid error code. Use $ERR_* constants"_s);
return {};