Skip to content

Commit 207856f

Browse files
fixup! rename to invokePromiseCallback
1 parent 4d9af55 commit 207856f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/webstreams/util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ function enqueueValueWithSize(controller, value, size) {
176176

177177
// This implements "invoke a callback function type" for callback functions that return a promise.
178178
// See https://webidl.spec.whatwg.org/#es-invoking-callback-functions
179-
async function ensureIsPromise(fn, thisArg, ...args) {
179+
async function invokePromiseCallback(fn, thisArg, ...args) {
180180
return FunctionPrototypeCall(fn, thisArg, ...args);
181181
}
182182

183183
function createPromiseCallback(name, fn, thisArg) {
184184
validateFunction(fn, name);
185-
return (...args) => ensureIsPromise(fn, thisArg, ...args);
185+
return (...args) => invokePromiseCallback(fn, thisArg, ...args);
186186
}
187187

188188
function isPromisePending(promise) {
@@ -274,11 +274,11 @@ module.exports = {
274274
copyArrayBuffer,
275275
customInspect,
276276
dequeueValue,
277-
ensureIsPromise,
278277
enqueueValueWithSize,
279278
extractHighWaterMark,
280279
extractSizeAlgorithm,
281280
lazyTransfer,
281+
invokePromiseCallback,
282282
isBrandCheck,
283283
isPromisePending,
284284
isViewedArrayBufferDetached,

0 commit comments

Comments
 (0)