diff options
Diffstat (limited to 'ext/node/polyfills/_zlib_binding.mjs')
-rw-r--r-- | ext/node/polyfills/_zlib_binding.mjs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/node/polyfills/_zlib_binding.mjs b/ext/node/polyfills/_zlib_binding.mjs index 30bd1400a..9cece7feb 100644 --- a/ext/node/polyfills/_zlib_binding.mjs +++ b/ext/node/polyfills/_zlib_binding.mjs @@ -45,6 +45,9 @@ export const UNZIP = 7; const { core } = globalThis.__bootstrap; const { ops } = core; +const { + op_zlib_write_async, +} = core.ensureFastOps(); const writeResult = new Uint32Array(2); @@ -117,8 +120,7 @@ class Zlib { out_off, out_len, ) { - core.opAsync( - "op_zlib_write_async", + op_zlib_write_async( this.#handle, flush ?? Z_NO_FLUSH, input, |