[css-houdini-drafts] [worklets] addModule() should reject a promise with a more specific exception

nhiroki has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [worklets] addModule() should reject a promise with a more specific exception ==
The current spec defines that ```addModule()``` rejects a promise with "AbortError" DOMException in any case:

> 2. Reject promise with an "AbortError" DOMException.
> (see https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script)

This obfuscates the reason why ```addModule()``` failed and makes it hard to debug. It would be nice to reject it with a more specific exception like "NetworkError" and "SyntaxError".

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/509 using your GitHub account

Received on Tuesday, 7 November 2017 02:08:15 UTC