Re: [whatwg/fetch] Adds "audioworklet" and "paintworklet" as destinations. (#527)

> 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