We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7995725 commit 57bf371Copy full SHA for 57bf371
1 file changed
lib/internal/webidl.js
@@ -166,7 +166,7 @@ function integerPart(n) {
166
function evenRound(x) {
167
// Web IDL ConvertToInt step 7.2: round to the nearest integer,
168
// choosing the even integer on ties and +0 rather than -0.
169
- const i = integerPart(x) + 0;
+ const i = integerPart(x);
170
const remainder = MathAbs(x % 1);
171
const sign = MathSign(x);
172
if (remainder === 0.5) {
0 commit comments