On Aug 6, 2013, at 10:24 , Rick Waldron wrote:
> On Tue, Aug 6, 2013 at 11:50 AM, Domenic Denicola
> wrote:
> However, the [definition of `RangeError`][1] probably needs some updating in
> that case:
>
> > Indicates a numeric value has exceeded the allowable range.
>
> Can you file a bug h
On Tue, Aug 6, 2013 at 11:50 AM, Domenic Denicola <
dome...@domenicdenicola.com> wrote:
> Right, I think both are indeed enums at some conceptual level. IDL gives
> that concept a name; ES does not. It would be nice if IDL enums followed ES
> semantics, of doing `ToString(value)` (which may throw
Right, I think both are indeed enums at some conceptual level. IDL gives that
concept a name; ES does not. It would be nice if IDL enums followed ES
semantics, of doing `ToString(value)` (which may throw a `TypeError`) and then
throwing a `RangeError` if outside the allowed range.
However, the
On Tue, Aug 6, 2013 at 4:32 PM, Allen Wirfs-Brock wrote:
> The argument to String.prototype.noralization is not an enumeration (not an
> ES concept) but a string. If the agument can not be converted to a string
> value, a TypeError is thrown. If the string value is not within the range
> of expe
On Aug 6, 2013, at 7:59 AM, Anne van Kesteren wrote:
> In IDL not being part of an enumeration throws TypeError. It seems
> String.prototype.normalize uses RangeError. I've no preference as to
> which is better, but it would be good if they were equal.
The argument to String.prototype.noralizati
In IDL not being part of an enumeration throws TypeError. It seems
String.prototype.normalize uses RangeError. I've no preference as to
which is better, but it would be good if they were equal.
Also, throughout the platform we typically lowercase enumeration
constants, e.g. "arraybuffer". I think
6 matches
Mail list logo