queueMicrotask again

This commit is contained in:
Ciro Spaciari
2025-09-10 21:18:02 -07:00
parent 6cc1e75d0f
commit 019ccc338d

View File

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