W3C home > Mailing lists > Public > www-international@w3.org > October to December 2014

[Bug 27248] New: "throws a TypeError. "

From: <bugzilla@jessica.w3.org>
Date: Wed, 05 Nov 2014 12:21:09 +0000
To: www-international@w3.org
Message-ID: <bug-27248-4285@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27248

            Bug ID: 27248
           Summary: "throws a TypeError. "
           Product: WHATWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Encoding
          Assignee: annevk@annevk.nl
          Reporter: d@domenic.me
        QA Contact: sideshowbarker+encodingspec@gmail.com
                CC: mike@w3.org, www-international@w3.org

https://encoding.spec.whatwg.org/#interface-textencoder

[[
throws a TypeError. 
]]

In general RangeErrors are better used when only an enumeration should be
allowed and you want to throw when outside that range. See e.g.
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.normalize

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 5 November 2014 12:21:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:38 UTC