Skip to content

Commit

Permalink
src: use args.This() in zlib
Browse files Browse the repository at this point in the history
Refs: #53474
PR-URL: #56988
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
  • Loading branch information
targos authored Feb 11, 2025
1 parent de1b345 commit 3186468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_zlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ class ZstdStream final : public CompressionStream<CompressionContext> {
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<uint32_t*>(Buffer::Data(args[2]));
Expand Down

0 comments on commit 3186468

Please sign in to comment.