- From: Tobie Langel <notifications@github.com>
- Date: Mon, 14 Aug 2017 07:02:51 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 14 August 2017 14:03:54 UTC
tobie commented on this pull request. > @@ -6668,7 +6674,7 @@ In effect, where <var ignore>x</var> is a <emu-val>Number</emu-val> value, 1. Let |x| be [=?=] [=ToNumber=](|V|). 1. If |x| is <emu-val>NaN</emu-val>, +∞, or −∞, - then [=ECMAScript/throw=] a <emu-val>TypeError</emu-val>. + then [=ECMAScript/throw=] a {{TypeError}}. Well, yes it maps, but what you're effectively throwing here is the ES TypeError, not the WebIDL one. So the conversion is implied, not stated. I think we're loosing clarity by doing this (that is, consistently returning ES values from IDL to ES conversion lowers the cognitive load, imho). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/pull/405#discussion_r132958043
Received on Monday, 14 August 2017 14:03:54 UTC