Skip to content

Commit 57bf371

Browse files
committed
fixup! lib: refactor internal webidl converters
Signed-off-by: Filip Skokan <[email protected]>
1 parent 7995725 commit 57bf371

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/webidl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function integerPart(n) {
166166
function evenRound(x) {
167167
// Web IDL ConvertToInt step 7.2: round to the nearest integer,
168168
// choosing the even integer on ties and +0 rather than -0.
169-
const i = integerPart(x) + 0;
169+
const i = integerPart(x);
170170
const remainder = MathAbs(x % 1);
171171
const sign = MathSign(x);
172172
if (remainder === 0.5) {

0 commit comments

Comments
 (0)