src: use args.This() instead of Holder

The latter is deprecated in V8.

Refs: http://crbug.com/333672197
PR-URL: https://github.com/nodejs/node/pull/53474
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
Michaël Zasso committed 2024-06-20 15:38:16 +02:00
1 parent 977beab729
commit 15df4edd22
50 files changed
+356 -382

No files matched your search

+4 -4
View File
@@ -81,7 +81,7 @@ void WasmStreamingObject::New(const FunctionCallbackInfo<Value>& args) {
void WasmStreamingObject::SetURL(const FunctionCallbackInfo<Value>& args) {
WasmStreamingObject* obj;
ASSIGN_OR_RETURN_UNWRAP(&obj, args.Holder());
ASSIGN_OR_RETURN_UNWRAP(&obj, args.This());
CHECK(obj->streaming_);
CHECK_EQ(args.Length(), 1);
@@ -92,7 +92,7 @@ void WasmStreamingObject::SetURL(const FunctionCallbackInfo<Value>& args) {
void WasmStreamingObject::Push(const FunctionCallbackInfo<Value>& args) {
WasmStreamingObject* obj;
ASSIGN_OR_RETURN_UNWRAP(&obj, args.Holder());
ASSIGN_OR_RETURN_UNWRAP(&obj, args.This());
CHECK(obj->streaming_);
CHECK_EQ(args.Length(), 1);
@@ -128,7 +128,7 @@ void WasmStreamingObject::Push(const FunctionCallbackInfo<Value>& args) {
void WasmStreamingObject::Finish(const FunctionCallbackInfo<Value>& args) {
WasmStreamingObject* obj;
ASSIGN_OR_RETURN_UNWRAP(&obj, args.Holder());
ASSIGN_OR_RETURN_UNWRAP(&obj, args.This());
CHECK(obj->streaming_);
CHECK_EQ(args.Length(), 0);
@@ -137,7 +137,7 @@ void WasmStreamingObject::Finish(const FunctionCallbackInfo<Value>& args) {
void WasmStreamingObject::Abort(const FunctionCallbackInfo<Value>& args) {
WasmStreamingObject* obj;
ASSIGN_OR_RETURN_UNWRAP(&obj, args.Holder());
ASSIGN_OR_RETURN_UNWRAP(&obj, args.This());
CHECK(obj->streaming_);
CHECK_EQ(args.Length(), 1);