Re: [heycam/webidl] Use <emu-val> only for constant values (#405)

TimothyGu 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}}.

Yes, this was intentional. TypeError [maps](https://heycam.github.io/webidl/#es-exception-objects) to ES anyway, while SyntaxError is a special case as it's an example of an exception type that doesn't map to IDL.

-- 
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_r132955934

Received on Monday, 14 August 2017 13:55:10 UTC