New issue 1792 by mstar...@chromium.org: Behavior of
Date.prototype.toISOString not spec conform
http://code.google.com/p/v8/issues/detail?id=1792
For cases in which the time value of a Date object is not a finite number,
Date.prototype.toISOString() should throw a RangeError expection. So far V8
did not do that, to be compatible with Firefox and Safari. The situation
should be reevaluated. This is reproducible by several Test262 test cases
(i.e. 15.9.5.43-0-*)
Opened a bug on the JSC issue tracker:
https://bugs.webkit.org/show_bug.cgi?id=70998
The following is a JavaScript snippet to reproduce the issue without
Test262 test cases:
function test() {
var date = new Date(Infinity, 1, 70, 0, 0, 0);
try {
date.toISOString();
return false;
} catch (e) {
return e instanceof RangeError;
}
}
Comment #2 on issue 1792 by mstar...@chromium.org: Behavior of
Date.prototype.toISOString not spec conform
http://code.google.com/p/v8/issues/detail?id=1792
Fixed in r9829. The JSC folks have triaged the issue and will probably fix
it as well.