[Webkit-unassigned] [Bug 161673] New: [INTL] Intl constructors do not throw when called with a previously initialized intl object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 6 20:46:00 PDT 2016


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

            Bug ID: 161673
           Summary: [INTL] Intl constructors do not throw when called with
                    a previously initialized intl object
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: thetalecrafter at gmail.com

Part of the kangax compat table tests[1] properly throwing an error when you call the Intl constructors with an object already initialized as an intl object. This is according to spec.[2][3][4]

Firefox, Chrome, and Edge properly throw in these tests.

These should all throw:

    Intl.Collator.call(Intl.Collator())
    Intl.DateTimeFormat.call(Intl.DateTimeFormat())
    Intl.NumberFormat.call(Intl.NumberFormat())

[1] http://kangax.github.io/compat-table/esintl/
[2] http://ecma-international.org/ecma-402/3.0/index.html#sec-initializecollator
[3] http://ecma-international.org/ecma-402/3.0/index.html#sec-initializenumberformat
[4] http://ecma-international.org/ecma-402/3.0/index.html#sec-initializedatetimeformat

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160907/b4a700c4/attachment-0001.html>


More information about the webkit-unassigned mailing list