From 8fff51810a18140fa21673d705d341bfe5998526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 10 Feb 2025 15:22:35 +0100 Subject: [PATCH] src: use `args.This()` in zlib Refs: https://github.com/nodejs/node/pull/53474 --- 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]));