I18N-ISSUE-445 (BUG27248): "throws a TypeError. " [encoding]

I18N-ISSUE-445 (BUG27248): "throws a TypeError. " [encoding]

http://www.w3.org/International/track/issues/445

Raised by: Richard Ishida
On product: encoding

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27248

This issue tracks the bug listed above and was created as part of the WG CR process.

---

Reporter: d@domenic.me


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

Received on Monday, 30 March 2015 14:14:23 UTC