- From: guest271314 via GitHub <sysbot+gh@w3.org>
- Date: Thu, 28 Mar 2019 16:12:50 +0000
- To: public-houdini-archive@w3.org
guest271314 has just created a new issue for https://github.com/w3c/css-houdini-drafts:
== [worklets-1] ==
**please link to the spec section you're talking about, or at least the spec**
https://drafts.css-houdini.org/worklets/#dom-worklet-addmodule
> 5. If moduleURLRecord is failure, then reject promise with a "SyntaxError" DOMException and return promise.
If `Worklet` is modeled on module script in the case of the developer/user passing a path does not not exist at the filesystem the error should be consistent with the error that
`import x from "./processors"`
or
`import("./processors")`
throws
`GET https://path/to/resource.moc/processors.js net::ERR_ABORTED 404`
or
```
(index):8 GET https://path/to/resource.moc/processors.js 404
(anonymous) @ (index):8
TypeError: Failed to fetch dynamically imported module:
https://path/to/resource.moc/processors.js
```
A `DOMException` error is not meaningful or related to a `404` `net` error.
Related
- https://github.com/WebAudio/web-audio-api/issues/1282
- https://github.com/WebAudio/web-audio-api/issues/1581
- https://github.com/WebAudio/web-audio-api/issues/1846
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/871 using your GitHub account
Received on Thursday, 28 March 2019 16:12:52 UTC