Re: [css-houdini-drafts] [worklets] (bikeshedding time!) import() name is potentially confusing...

I think the reason there's no constructor is because it doesn't make sense to have more than one instance, so you'd need to keep global state to prevent multiple instances at which point you might as well just have it there. And the main reason to favor something like `spawn` over `import` is because the code can end up running in multiple globals (or is guaranteed to, in case of paint worklets).

-- 
GitHub Notification of comment by annevk
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/374#issuecomment-294187655 using your GitHub account

Received on Friday, 14 April 2017 16:40:33 UTC