ISSUE-445: Consider changing the exceptions
Consider changing the exceptions
- State:
- CLOSED
- Product:
- encoding
- Raised by:
- Richard Ishida
- Opened on:
- 2015-03-30
- Description:
- 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
- Related Actions Items:
- No related actions
- Related emails:
- I18N-ISSUE-445 (BUG27248): "throws a TypeError. " [encoding] (from sysbot+tracker@w3.org on 2015-03-30)
Related notes:
Bug marked RESOLVED and FIXED.
Richard Ishida, 30 Mar 2015, 14:14:40These issues are now tracked at http://www.w3.org/International/docs/encoding/encoding-cr-doc
Richard Ishida, 16 Sep 2015, 11:52:31
Display change log