diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts b/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts index fce698bf4..11d063323 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/src/calls.ts @@ -193,7 +193,7 @@ export function Call(options: CallOptions): CancellablePromise { const cancel = () => { callResponses.delete(id); return cancelCall(CancelMethod, {"call-id": id}).catch((err) => { - console.log("Error while requesting binding call cancellation:", err); + console.error("Error while requesting binding call cancellation:", err); }); }; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js b/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js index e4806b6e0..baf51e3c0 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/src/promises_aplus.test.js @@ -21,7 +21,7 @@ process.on('unhandledRejection', function (reason, promise) { global.context = global.describe = V.describe; global.specify = global.it = function it(desc, fn) { let viTestFn = fn; - if (fn && fn.length) { + if (fn?.length) { viTestFn = () => new Promise((done) => fn(done)); } V.it(desc, viTestFn);