From cfea53eccc7761c9c5a1ae88715ec8d1a0c892fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 11 Feb 2025 08:26:46 +0100 Subject: [PATCH] src: use `args.This()` in zlib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/pull/53474 PR-URL: https://github.com/nodejs/node/pull/56988 Reviewed-By: Colin Ihrig Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell Reviewed-By: Marco Ippolito Reviewed-By: Juan José Arboleda --- src/node_zlib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_zlib.cc b/src/node_zlib.cc index bfdb10310fdb1e..0b7c47b326c7c5 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -878,7 +878,7 @@ class ZstdStream final : public CompressionStream { CHECK(args.Length() == 4 && "init(params, pledgedSrcSize, writeResult, writeCallback)"); ZstdStream* wrap; - ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); + ASSIGN_OR_RETURN_UNWRAP(&wrap, args.This()); CHECK(args[2]->IsUint32Array()); uint32_t* write_result = reinterpret_cast(Buffer::Data(args[2]));