mirror of https://github.com/tc39/test262.git
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
|
@ -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…
Reference in New Issue