- From: Tobie Langel <notifications@github.com>
- Date: Thu, 08 Dec 2016 06:27:38 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Message-ID: <heycam/webidl/pull/250@github.com>
* Don't define simple exception names in WebIDL.
* Make Error exclusively for authors.
* Fix syntax for throwing and creating DomExceptions.
* Fix examples.
Closes #247.
**NOTE:** This doesn't address the distinction between [#throw](https://heycam.github.io/webidl/#dfn-throw) and [#ecmascript-throw](https://heycam.github.io/webidl/#ecmascript-throw), which I think needs fixing before we merge this.
I'd be tempted not to export [#ecmascript-throw](https://heycam.github.io/webidl/#ecmascript-throw) and make everything use [#throw](https://heycam.github.io/webidl/#dfn-throw) instead. (Currently all simple exceptions in the spec reference [#ecmascript-throw](https://heycam.github.io/webidl/#ecmascript-throw), which I don't think is the right thing to do.)
We'd then only use the text around [#ecmascript-throw](https://heycam.github.io/webidl/#ecmascript-throw) in the bindings to describe the behavior of all exceptions (or just simple ones?) in an ES environment. Thoughts?
You can view, comment on, or merge this pull request online at:
https://github.com/heycam/webidl/pull/250
-- Commit Summary --
* Exception cleanup
-- File Changes --
M index.bs (78)
M index.html (194)
-- Patch Links --
https://github.com/heycam/webidl/pull/250.patch
https://github.com/heycam/webidl/pull/250.diff
--
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/250
Received on Thursday, 8 December 2016 14:28:47 UTC