revert this

This commit is contained in:
Ciro Spaciari
2025-09-09 22:56:10 -07:00
parent 2cc90a7615
commit 8eb6b933b6

View File

@@ -401,7 +401,14 @@ pub fn failWithJSValue(this: *MySQLConnection, value: JSValue) void {
const queries_array = this.getQueriesArray();
queries_array.ensureStillAlive();
this.globalObject.queueMicrotask(on_close, &[_]JSValue{ js_error, queries_array });
_ = on_close.call(
this.globalObject,
.js_undefined,
&[_]JSValue{
js_error,
queries_array,
},
) catch |e| this.globalObject.reportActiveExceptionAsUnhandled(e);
}
pub fn fail(this: *MySQLConnection, message: []const u8, err: AnyMySQLError.Error) void {