Sign in
webkit
/
WebKit
/
7e879361fb932be61b4de77d5f6669f663c67d9c
/
.
/
JSTests
/
stress
/
date-negative-zero.js
blob: 08b71e37a77cc6f3c09ce04f0ddc8c5fbd95f3f6 [
file
] [
log
] [
blame
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
var
date
=
new
Date
(-
0
);
shouldBe
(
Object
.
is
(
date
.
getTime
(),
0
),
true
);