fix deferred calls bug

This commit is contained in:
Dmitry Vasilev
2023-06-05 15:53:08 +03:00
parent 08d88d68d2
commit 583e34f71a
5 changed files with 35 additions and 10 deletions

View File

@@ -77,7 +77,7 @@ const io_patch = (path, use_context = false) => {
: original.apply(this, args)
if(value instanceof cxt.window.Promise) {
// TODO use cxt.promise_then, not finally which calls
// TODO use __original_then, not finally which calls
// patched 'then'?
value = value.finally(() => {
if(cxt_copy != cxt) {