Re: Exception usage

On Wed, Feb 12, 2014 at 1:20 AM, Olli Pettay <Olli.Pettay@helsinki.fi> wrote:
> http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.normalize
> is still quite different.
> There you have a predefined set of values, and if something else is passed,
> it is RangeError.
>
> pointerId can be any random number. RangeError gives a wrong hint that there
> would be some sort of
> continuous range, and that is explicitly what we don't want.

Fair enough. Then TypeError would be fine.

(Can code always know the active pointers btw?)


-- 
http://annevankesteren.nl/

Received on Wednesday, 12 February 2014 10:46:36 UTC