Chromium Code Reviews
Description[Content] Allow V8ValueConverter to convert -0 to an integer
V8ValueConverter currently converts -0 to a double, because it is not
considered an int32 (or a uint32), even though it is === 0 (which is
considered an int). This causes nastiness in extensions because we
evaluate it as an integer, but the V8ValueConverter converts it to a
bool, and breaks our expectations.
Add a configuration method, SetConvertNegativeZeroToInt(), to
V8ValueConverter to specify that -0 should be converted to an
int.
Add tests for both scenarios (with and without the configuration).
BUG=694248
Review-Url: https://codereview.chromium.org/2709103004
Cr-Commit-Position: refs/heads/master@{#452854}
Committed: https://chromium.googlesource.com/chromium/src/+/f88f9bc261af492194bc6d3b2e3536adc2a34904
Patch Set 1 #
Messages
Total messages: 13 (9 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||