Re: [heycam/webidl] Add a note on the difference of SyntaxError (#459)

tobie commented on this pull request.



> @@ -4401,6 +4401,11 @@ for {{DOMException}}, a description, and legacy code values.
 
 Note: If an error name is not listed here, please file a bug as indicated at the top of this specification and it will be addressed shortly. Thanks!
 
+Note: Do not confuse {{SyntaxError!!exception}} defined here with ECMAScript's

Think it would make sense to use the (correct)  `"{{SyntaxError!!exception}}" {{DOMException}}` notation here.

> @@ -4401,6 +4401,11 @@ for {{DOMException}}, a description, and legacy code values.
 
 Note: If an error name is not listed here, please file a bug as indicated at the top of this specification and it will be addressed shortly. Thanks!
 
+Note: Do not confuse {{SyntaxError!!exception}} defined here with ECMAScript's
+{{ECMAScript/SyntaxError}}. The ECMAScript one is deliberately omitted from

I'd write something like this again here:

> The ECMAScript {{ECMAScript/SyntaxError}} is deliberately omitted from [=simple exceptions=] as it is reserved for the ECMAScript parser.

And then add something about using "{{SyntaxError!!exception}}" {{DOMException}} for other kids of parsing erros (e.g. CSS parser) after that.
 

-- 
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/459#pullrequestreview-68580731

Received on Wednesday, 11 October 2017 12:16:58 UTC