@@ -1521,23 +1521,23 @@ public static bool TryGetPropertyValue(object? target, string propertyName, out
15211521 {
15221522 case bool b :
15231523 var booleanWrapper = StandardLibrary . CreateBooleanWrapper ( b , context , context ? . RealmState ) ;
1524- if ( booleanWrapper . TryGetProperty ( propertyName , out value ) )
1524+ if ( booleanWrapper . TryGetProperty ( propertyName , receiver : target , context , out value ) )
15251525 {
15261526 return true ;
15271527 }
15281528
15291529 break ;
15301530 case double num :
15311531 var numberWrapper = StandardLibrary . CreateNumberWrapper ( num , context , context ? . RealmState ) ;
1532- if ( numberWrapper . TryGetProperty ( propertyName , out value ) )
1532+ if ( numberWrapper . TryGetProperty ( propertyName , receiver : target , context , out value ) )
15331533 {
15341534 return true ;
15351535 }
15361536
15371537 break ;
15381538 case JsBigInt bigInt :
15391539 var bigIntWrapper = StandardLibrary . CreateBigIntWrapper ( bigInt , context , context ? . RealmState ) ;
1540- if ( bigIntWrapper . TryGetProperty ( propertyName , out value ) )
1540+ if ( bigIntWrapper . TryGetProperty ( propertyName , receiver : target , context , out value ) )
15411541 {
15421542 return true ;
15431543 }
@@ -1558,7 +1558,7 @@ public static bool TryGetPropertyValue(object? target, string propertyName, out
15581558 }
15591559
15601560 var stringWrapper = StandardLibrary . CreateStringWrapper ( str , context , context ? . RealmState ) ;
1561- if ( stringWrapper . TryGetProperty ( propertyName , out value ) )
1561+ if ( stringWrapper . TryGetProperty ( propertyName , receiver : target , context , out value ) )
15621562 {
15631563 return true ;
15641564 }
0 commit comments