Handle integer -0 as 0 in extensions
-0 is treated as double 0.0f in V8. This makes GetAsInteger() return -0 is not an integer type. Extension APIs with integer parameters will fail to get the value using GetAsInteger(). This CL convert integer -0 to integer 0. BUG=471011 Review URL: https://codereview.chromium.org/1126983009 Cr-Commit-Position: refs/heads/master@{#329860}
Showing
Please register or sign in to comment