mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00:00
feat(infra): job system (#7212)
This commit is contained in:
12
scripts/setup/polyfill.ts
Normal file
12
scripts/setup/polyfill.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
Promise.withResolvers ??= function withResolvers() {
|
||||
var a,
|
||||
b,
|
||||
c = new this(function (resolve, reject) {
|
||||
a = resolve;
|
||||
b = reject;
|
||||
});
|
||||
return { resolve: a, reject: b, promise: c };
|
||||
};
|
||||
Reference in New Issue
Block a user