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

+2 -2
View File
@@ -586,11 +586,11 @@ void BindingData::BigIntImpl(BindingData* receiver) {
}
void BindingData::SlowBigInt(const FunctionCallbackInfo<Value>& args) {
BigIntImpl(FromJSObject<BindingData>(args.Holder()));
BigIntImpl(FromJSObject<BindingData>(args.This()));
}
void BindingData::SlowNumber(const v8::FunctionCallbackInfo<v8::Value>& args) {
NumberImpl(FromJSObject<BindingData>(args.Holder()));
NumberImpl(FromJSObject<BindingData>(args.This()));
}
bool BindingData::PrepareForSerialization(Local<Context> context,