mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
550 B
26 lines
550 B
/*---
|
|
{
|
|
"custom": true
|
|
}
|
|
---*/
|
|
|
|
/*===
|
|
Infinity
|
|
implementation dependent -Infinity
|
|
===*/
|
|
|
|
function timeClipZeroTest() {
|
|
// TimeClip() may (but is not required) to convert a negative zero
|
|
// to a positive one. Our current implementation will preserve the
|
|
// sign so test for that behavior (V8 has the same behavior, Rhino
|
|
// does not).
|
|
|
|
d = new Date(+0); print(1 / d.getTime());
|
|
d = new Date(-0); print('implementation dependent', 1 / d.getTime());
|
|
}
|
|
|
|
try {
|
|
timeClipZeroTest();
|
|
} catch (e) {
|
|
print(e.stack || e);
|
|
}
|
|
|