Re: [heycam/webidl] Refactor integer conversion in ES bindings. (#235)

tobie commented on this pull request.



> @@ -7042,9 +6924,9 @@ value when its bit pattern is interpreted as an unsigned 32 bit integer.
     An ECMAScript value |V| is [=converted to an IDL value|converted=]
     to an IDL {{double}} value by running the following algorithm:
 
-    1.  Let |x| be [=ToNumber=](|V|).
-    1.  If |x| is <emu-val>NaN</emu-val>, <emu-val>+Infinity</emu-val> or
-        <emu-val>−Infinity</emu-val>, then <a lt="es throw">throw a <emu-val>TypeError</emu-val></a>.
+    1.  Let |x| be [=?=] [=ToNumber=](|V|).
+    1.  If |x| is <emu-val>NaN</emu-val>, +∞, or −∞,
+        then <a lt="es throw">throw a <emu-val>TypeError</emu-val></a>.
     1.  Return the IDL {{double}} value
         that has the same numeric value as |x|.
 </div>

Fixed.

-- 
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/235

Received on Friday, 11 November 2016 23:25:57 UTC