Re: [ServiceWorker] importScripts() should throw? (#642)

Well, issue #410 is open to make ServiceWorker not inherit Worker.  I still think we should do that to avoid confusion between the two.  I think there are many differences in behavior already.

It seems making async `importScripts()` throw is probably the right thing.  While it might break module loading frameworks, those frameworks would not work on ServiceWorker anyway if they depend on async importing.  Throwing just makes the error explicit instead of mysteriously breaking when you are offline.

Is this something blink would consider implementing at this point?

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/642#issuecomment-76722719

Received on Monday, 2 March 2015 14:42:50 UTC