[Webkit-unassigned] [Bug 70998] New: Behavior of Date.prototype.toISOString not spec conform

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 27 01:26:04 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70998

           Summary: Behavior of Date.prototype.toISOString not spec
                    conform
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mstarzinger at chromium.org


For cases in which the time value of a Date object is not a finite number, Date.prototype.toISOString() should throw a RangeError exception. This can either be reproduced by several Test262 test cases (i.e. 15.9.5.43-0-*) or with the following JavaScript snippet.

function test() {
  var date = new Date(Infinity, 1, 70, 0, 0, 0);
  try {
    date.toISOString();
    return false;
  } catch (e) {
    return e instanceof RangeError;
  }
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list