diff options
Diffstat (limited to 'op_crates/fetch/11_streams.js')
-rw-r--r-- | op_crates/fetch/11_streams.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/op_crates/fetch/11_streams.js b/op_crates/fetch/11_streams.js index 1c1889e09..549bc9922 100644 --- a/op_crates/fetch/11_streams.js +++ b/op_crates/fetch/11_streams.js @@ -1071,14 +1071,17 @@ throw new TypeError("method is not callable"); } if (algoArgCount === 0) { + // deno-lint-ignore require-await return async () => call(method, underlyingObject, extraArgs); } else { + // deno-lint-ignore require-await return async (arg) => { const fullArgs = [arg, ...extraArgs]; return call(method, underlyingObject, fullArgs); }; } } + // deno-lint-ignore require-await return async () => undefined; } @@ -2490,6 +2493,7 @@ if (typeof transformMethod !== "function") { throw new TypeError("tranformer.transform must be callable."); } + // deno-lint-ignore require-await transformAlgorithm = async (chunk) => call(transformMethod, transformer, [chunk, controller]); } |