fix tests

This commit is contained in:
Dmitry Vasilev
2024-02-15 17:03:26 +08:00
parent 0d902418ee
commit fb07f81ff6
7 changed files with 26 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ const make_patched_method = (window, original, name, use_context) => {
? new original(...args)
: original.apply(this, args)
if(value instanceof cxt.window.Promise) {
if(value?.[Symbol.toStringTag] == 'Promise') {
// TODO use __original_then, not finally which calls
// patched 'then'?
value = value.finally(() => {