1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

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

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
test/built-ins/Date/prototype/valueOf

@ -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');

@ -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');