@@ -531,7 +531,7 @@ template <typename T>
531531static bool ShouldIntercept (Local<Name> property,
532532 const PropertyCallbackInfo<T>& info) {
533533 Environment* env = Environment::GetCurrent (info);
534- Local<Value> proto = info.This ()->GetPrototypeV2 ();
534+ Local<Value> proto = info.HolderV2 ()->GetPrototypeV2 ();
535535
536536 if (proto->IsObject ()) {
537537 bool has_prop;
@@ -555,7 +555,7 @@ static Intercepted StorageGetter(Local<Name> property,
555555 }
556556
557557 Storage* storage;
558- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
558+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
559559 Local<Value> result;
560560
561561 if (storage->Load (property).ToLocal (&result) && !result->IsNull ()) {
@@ -569,7 +569,7 @@ static Intercepted StorageSetter(Local<Name> property,
569569 Local<Value> value,
570570 const PropertyCallbackInfo<void >& info) {
571571 Storage* storage;
572- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
572+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
573573
574574 if (storage->Store (property, value).IsNothing ()) {
575575 info.GetReturnValue ().SetFalse ();
@@ -585,7 +585,7 @@ static Intercepted StorageQuery(Local<Name> property,
585585 }
586586
587587 Storage* storage;
588- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
588+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
589589 Local<Value> result;
590590 if (!storage->Load (property).ToLocal (&result) || result->IsNull ()) {
591591 return Intercepted::kNo ;
@@ -598,7 +598,7 @@ static Intercepted StorageQuery(Local<Name> property,
598598static Intercepted StorageDeleter (Local<Name> property,
599599 const PropertyCallbackInfo<Boolean>& info) {
600600 Storage* storage;
601- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
601+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
602602
603603 info.GetReturnValue ().Set (storage->Remove (property).IsJust ());
604604
@@ -607,7 +607,7 @@ static Intercepted StorageDeleter(Local<Name> property,
607607
608608static void StorageEnumerator (const PropertyCallbackInfo<Array>& info) {
609609 Storage* storage;
610- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This ());
610+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 ());
611611 Local<Array> result;
612612 if (!storage->Enumerate ().ToLocal (&result)) {
613613 return ;
@@ -619,7 +619,7 @@ static Intercepted StorageDefiner(Local<Name> property,
619619 const PropertyDescriptor& desc,
620620 const PropertyCallbackInfo<void >& info) {
621621 Storage* storage;
622- ASSIGN_OR_RETURN_UNWRAP (&storage, info.This (), Intercepted::kNo );
622+ ASSIGN_OR_RETURN_UNWRAP (&storage, info.HolderV2 (), Intercepted::kNo );
623623
624624 if (desc.has_value ()) {
625625 return StorageSetter (property, desc.value (), info);
0 commit comments