This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26961 - Recommend against JavaScript SyntaxError
Summary: Recommend against JavaScript SyntaxError
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2014-10-03 08:16 UTC by Anne
Modified: 2014-10-03 08:54 UTC (History)
2 users (show)

See Also:


Description Anne 2014-10-03 08:16:03 UTC

We might want to recommend against creating JavaScript SyntaxError from web standards. Per Allen it is solely intended for parse errors of JavaScript. That it was used for JSON was a mistake and we should probably not give opportunity to spread it further (so defaulting to DOMException "SyntaxError" is great already).
Comment 1 Cameron McCormack 2014-10-03 08:35:06 UTC
Should I just remove it from the list of "simple exceptions" then?  If it's not meant to be used anywhere else that'd be better than warning people off it.
Comment 2 Anne 2014-10-03 08:41:23 UTC
Yeah I guess that's fine. Perhaps better to change IDL to allow it once there's an Allen-vetted use case.