- From: Darien Maillet Valentine <notifications@github.com>
- Date: Sat, 03 Jun 2023 09:15:22 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/webidl/issues/1314@github.com>
Web IDL enumerates the ES [Error object constructor](https://tc39.es/ecma262/#sec-error-objects) names that are usable in Web IDL for [simple exceptions](https://webidl.spec.whatwg.org/#dfn-simple-exception), but it the text that follows it also enumerates those which _aren’t:_ > These correspond to all of the ECMAScript [error objects](https://tc39.es/ecma262/#sec-error-objects) (apart from [SyntaxError](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-native-error-types-used-in-this-standard-syntaxerror) and [Error](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-error-objects), which are deliberately omitted as they are reserved for use by the ECMAScript parser and by authors, respectively). This list is no longer complete because of [AggregateError](https://tc39.es/ecma262/#sec-aggregate-error-objects). Options include: 1. Adding AggregateError to the explicit exclusions list, and [future additions](https://arai-a.github.io/ecma262-compare/snapshot.html?pr=3000#sec-suppressederror-constructor) as well, as they are introduced 2. Restructuring the sentence so that it doesn’t claim to be exhaustive 3. Changing the references to “Error object” to [“NativeError object”](https://arai-a.github.io/ecma262-compare/snapshot.html?pr=3000#sec-native-error-types-used-in-this-standard), in which case the only excluded type would be “SyntaxError”. (The odds of new NativeError objects being introduced seems lower than that of new Error objects being introduced.) (Spun off from exception-related [PR feedback](https://github.com/whatwg/webidl/pull/1211#discussion_r1212967458) because this was a pre-existing issue in the text.) -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/issues/1314 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/issues/1314@github.com>
Received on Saturday, 3 June 2023 16:15:28 UTC