@@ -562,7 +562,7 @@ template <typename T>
562562static bool ShouldIntercept (Local<Name> property,
563563 const PropertyCallbackInfo<T>& info) {
564564 Environment* env = Environment::GetCurrent (info);
565- Local<Value> proto = info.This ()->GetPrototypeV2 ();
565+ Local<Value> proto = info.HolderV2 ()->GetPrototypeV2 ();
566566
567567 if (proto->IsObject ()) {
568568 bool has_prop;
@@ -586,7 +586,7 @@ static Intercepted StorageGetter(Local<Name> property,
586586 }
587587
588588 Storage* storage;
589- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
589+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
590590 Local<Value> result;
591591
592592 if (storage->Load (property).ToLocal (&result) && !result->IsNull ()) {
@@ -600,7 +600,7 @@ static Intercepted StorageSetter(Local<Name> property,
600600 Local<Value> value,
601601 const PropertyCallbackInfo<void >& info) {
602602 Storage* storage;
603- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
603+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
604604
605605 if (storage->Store (property, value).IsNothing ()) {
606606 info.GetReturnValue ().SetFalse ();
@@ -616,7 +616,7 @@ static Intercepted StorageQuery(Local<Name> property,
616616 }
617617
618618 Storage* storage;
619- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
619+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
620620 Local<Value> result;
621621 if (!storage->Load (property).ToLocal (&result) || result->IsNull ()) {
622622 return Intercepted::kNo ;
@@ -629,7 +629,7 @@ static Intercepted StorageQuery(Local<Name> property,
629629static Intercepted StorageDeleter (Local<Name> property,
630630 const PropertyCallbackInfo<Boolean>& info) {
631631 Storage* storage;
632- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
632+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
633633
634634 info.GetReturnValue ().Set (storage->Remove (property).IsJust ());
635635
@@ -638,7 +638,7 @@ static Intercepted StorageDeleter(Local<Name> property,
638638
639639static void StorageEnumerator (const PropertyCallbackInfo<Array>& info) {
640640 Storage* storage;
641- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This ());
641+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 ());
642642 Local<Array> result;
643643 if (!storage->Enumerate ().ToLocal (&result)) {
644644 return ;
@@ -650,7 +650,7 @@ static Intercepted StorageDefiner(Local<Name> property,
650650 const PropertyDescriptor& desc,
651651 const PropertyCallbackInfo<void >& info) {
652652 Storage* storage;
653- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
653+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
654654
655655 if (desc.has_value ()) {
656656 return StorageSetter (property, desc.value (), info);
0 commit comments