- From: Ian Kilpatrick <notifications@github.com>
- Date: Wed, 11 Oct 2017 16:53:53 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 11 October 2017 16:54:16 UTC
> Why would be block access to import()? Why would it have anything to do with the global scope being in an inconsistent state?
@domenic
E.g.
```js
// PaintWorkletGlobalScope
registerPaint('ripple', class {
paint(ctx, geom, ...) {
if (geom.width ==12345) {
import('changes-something.js');
}
}
});
// changes-something.js
registerPaint('foo', class {
paint() { /* some valid paint code */);
});
```
Within CSS.
```css
.element { background: paint(foo); }
```
`.element` now has undefined behaviour.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/527#issuecomment-335875373
Received on Wednesday, 11 October 2017 16:54:16 UTC