Skip to content

Commit df1b7e5

Browse files
anonrigaduh95
andcommitted
Update primordials.js
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 8d2a7dc commit df1b7e5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/internal/per_context/primordials.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -739,18 +739,5 @@ primordials.SafeStringPrototypeSearch = (str, regexp) => {
739739
return match ? match.index : -1;
740740
};
741741

742-
// TODO(@anonrig): Remove this when V8 removes the flag to disable Promise.withResolvers()
743-
// eslint-disable-next-line node-core/prefer-primordials
744-
primordials.PromiseWithResolvers = Promise.withResolvers || (() => {
745-
let resolve;
746-
let reject;
747-
const promise = new Promise((res, rej) => {
748-
resolve = res;
749-
reject = rej;
750-
});
751-
752-
return { promise, resolve, reject };
753-
});
754-
755742
ObjectSetPrototypeOf(primordials, null);
756743
ObjectFreeze(primordials);

0 commit comments

Comments
 (0)