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

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