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. (#3201)
This commit is contained in:
parent
227977a8e6
commit
2314b99bac
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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user