remove many usingnamespace, introduce new ref count and ref leak debugging tools (#18353)

This commit is contained in:
chloe caruso
2025-03-31 17:17:38 -07:00
committed by GitHub
parent 323d78df5e
commit a199b85f2b
99 changed files with 1857 additions and 1018 deletions

View File

@@ -809,9 +809,9 @@ pub const ErrorResponse = struct {
const error_code: JSC.Error =
// https://www.postgresql.org/docs/8.1/errcodes-appendix.html
if (code.eqlComptime("42601"))
JSC.Error.ERR_POSTGRES_SYNTAX_ERROR
else
JSC.Error.ERR_POSTGRES_SERVER_ERROR;
JSC.Error.ERR_POSTGRES_SYNTAX_ERROR
else
JSC.Error.ERR_POSTGRES_SERVER_ERROR;
const err = error_code.fmt(globalObject, "{s}", .{b.allocatedSlice()[0..b.len]});
inline for (possible_fields) |field| {