From 59ed375e6a3dd00da0e25f7ada008c0a1df0ea90 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Jun 2015 23:27:38 -0700 Subject: [PATCH] In Microsoft Edge v0.22, `Math.pow(2, -1074)` returns 0, not `5e-324`. Just use the spec value instead. --- test/math.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/math.js b/test/math.js index 62899051..f4d3a649 100644 --- a/test/math.js +++ b/test/math.js @@ -813,7 +813,8 @@ describe('Math', function () { }); it('returns zero for really small numbers', function () { - expect(Number.MIN_VALUE).to.equal(Math.pow(2, -1074)); // sanity check + expect(Number.MIN_VALUE).to.equal(5e-324); + expect(Math.fround(Number.MIN_VALUE)).to.equal(0); expect(Math.fround(-Number.MIN_VALUE)).to.equal(0); });