mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
queueMicrotask again
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user