Fix incorrect tests: new Date(-0).valueOf() and new Date(-1.23e-15).valueOf() should return +0. (#3201)

This commit is contained in:
Andreas Woess 2021-09-15 17:57:45 +02:00 committed by GitHub
parent 227977a8e6
commit 2314b99bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -56,4 +56,4 @@ assert.sameValue(d11.valueOf(), 0, 'd11.valueOf() must return 0');
// CHECK#12
var d12 = new Date(-1.23e-15);
assert.sameValue(d12.valueOf(), -0, 'd12.valueOf() must return -0');
assert.sameValue(d12.valueOf(), 0, 'd12.valueOf() must return 0');

View File

@ -30,4 +30,4 @@ assert.sameValue(d4.valueOf(), 0, 'd4.valueOf() must return 0');
// CHECK#5
var d5 = new Date(-0);
assert.sameValue(d5.valueOf(), -0, 'd5.valueOf() must return -0');
assert.sameValue(d5.valueOf(), 0, 'd5.valueOf() must return 0');