Worklet gives useless log on syntax error |
|||||||
Issue description
Chrome Version : 70.0.3516.0 (Official Build) canary (64-bit)
OS Version: OS X 10.13.6
What steps will reproduce the problem?
Call CSS.animationWorklet.addModule() with a file that for example contains
`registerAnimator('nothing', class {);`
What is the expected result?
A description of what went wrong
What happens instead of that?
Uncaught (in promise) DOMException: The user aborted a request.
,
Aug 10
,
Aug 10
,
Aug 15
,
Aug 16
AFAICT this is an issue that is common to all worklets. The initial modules parsing/executing logic is responsible for this. So assigning to nhiroki@ who can further triage this.
Here is a simple repro showing the same issue for Paint, Audio and Animation Worklets (just run this in devtools console):
function urlFromText(text) {
const blob = new Blob([text], {type: "text/javascript"});
return URL.createObjectURL(blob);
}
CSS.paintWorklet.addModule(urlFromText("var var;"));
CSS.animationWorklet.addModule(urlFromText("var var;"));
let context = new AudioContext();
context.audioWorklet.addModule(urlFromText("var var;"))
,
Sep 24
nhiroki@ This is making any syntax issue that happens inside worklet context very opaque and confusing and surma@ believe this is creating bad DevX for worklets. Is there anyway we can prioritize this fix? Also, is this a regression?
,
Sep 24
/cc japhet@ and @panicker per Ian's suggestion.
,
Sep 25
Sorry for my delayed reply. This issue is the same with issue 782066 that has been blocked by the spec issue. I'll activate the discussion again. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by vamshi.kommuri@chromium.org
, Aug 10