-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing COM variant to JSON serialization in IE
There is an expectation that if a result from JavaScript is "integral," that it is serialized for return to the calling code as an integral number rather than a floating-point number. Previous versions of the JSON serializer used by the IE driver would (incorrectly) serialize a floating-point value with no decimal part as being an integer. After updating to a later version, the serializer now (correctly) serializes floating-point values as floating-point values, with a trailing ".0" to indicate a floating - point value. While this is the correct behavior by the serializer, it breaks the expectations of the language bindings. Therefore, we check to see if the variant value has a decimal part, and if it has none, convert it to an integer for serialization by the JSON library.
- Loading branch information
Showing
5 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.