Skip to content

Commit c73fd33

Browse files
committed
Account for BigInt in ConvertFrom(object)
1 parent c7ac3b9 commit c73fd33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dotnet/src/webdriver/BiDi/Modules/Script/LocalValue.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ public static LocalValue ConvertFrom(object? value)
6969
case double d:
7070
return new NumberLocalValue(d);
7171

72+
case BigInteger bigInt:
73+
return new BigIntLocalValue(bigInt.ToString());
74+
7275
case string str:
7376
return new StringLocalValue(str);
7477

0 commit comments

Comments
 (0)