Repository: dexie/Dexie.js (language: javascript)

Issue:
DexiePromise does not have withResolvers 
[Promise.withResolvers()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers) is implemented in modern browsers today.

Dexie may not need to use withResolvers in the current version, but when I refer to a Promise in a callback in a liveQuery, the Promise is actually a DexiePromise. So it would be better to have withResolvers implemented (at least in my use case). 

```js
import { liveQuery } from "dexie";

console.log(Promise); // => Promise
Promise.withResolvers(); // => OK

let items = liveQuery(() => {
  console.log(Promise); // => DexiePromise
  Promise.withResolvers(); // => Error
});
```


Discussion / hints:

Fix patch:
diff --git a/src/helpers/promise.js b/src/helpers/promise.js
index f971a2888..7abdb0d11 100644
--- a/src/helpers/promise.js
+++ b/src/helpers/promise.js
@@ -331,6 +331,8 @@ if (NativePromise) {
                 }));
         });
     });
+    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
+    if (NativePromise.withResolvers) DexiePromise.withResolvers = NativePromise.withResolvers;
 }
 
 /**


Test patch: