File tree 2 files changed +4
-4
lines changed
dotnet/src/webdriver/BiDi/Modules/Script
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ public abstract record PrimitiveProtocolLocalValue : LocalValue
77
77
78
78
}
79
79
80
- public record Number ( long Value ) : PrimitiveProtocolLocalValue
80
+ public record Number ( double Value ) : PrimitiveProtocolLocalValue
81
81
{
82
- public static explicit operator Number ( int n ) => new Number ( n ) ;
82
+ public static explicit operator Number ( double n ) => new Number ( n ) ;
83
83
}
84
84
85
85
public record String ( string Value ) : PrimitiveProtocolLocalValue ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ namespace OpenQA.Selenium.BiDi.Modules.Script;
56
56
public abstract record RemoteValue
57
57
{
58
58
public static implicit operator int ( RemoteValue remoteValue ) => ( int ) ( ( Number ) remoteValue ) . Value ;
59
- public static implicit operator long ( RemoteValue remoteValue ) => ( ( Number ) remoteValue ) . Value ;
59
+ public static implicit operator long ( RemoteValue remoteValue ) => ( long ) ( ( Number ) remoteValue ) . Value ;
60
60
public static implicit operator string ( RemoteValue remoteValue )
61
61
{
62
62
return remoteValue switch
@@ -93,7 +93,7 @@ public static implicit operator string(RemoteValue remoteValue)
93
93
throw new BiDiException ( "Cannot convert ....." ) ;
94
94
}
95
95
96
- public record Number ( long Value ) : PrimitiveProtocolRemoteValue ;
96
+ public record Number ( double Value ) : PrimitiveProtocolRemoteValue ;
97
97
98
98
public record Boolean ( bool Value ) : PrimitiveProtocolRemoteValue ;
99
99
You can’t perform that action at this time.
0 commit comments