We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3340db commit 50c1ebbCopy full SHA for 50c1ebb
packages/metrics/tests/unit/helpers.ts
@@ -12,6 +12,10 @@ type Invocation = {
12
* a more convenient way to create promises that can be resolved or rejected from
13
* outside the Promise constructor.
14
*
15
+ * We need this polyfill because this function is not available in Node 20. When we drop
16
+ * support for this version of Node, then we should remove this function and use the
17
+ * inbuilt `Promise.withResolvers` static methods.
18
+ *
19
* @returns Object containing the promise and its resolve/reject functions
20
21
* @example
0 commit comments