Re: [w3c/ServiceWorker] Should importScripts() detect loops or otherwise abort after too much depth? (#1570)

This should be easier than the iframe case.  Iframes load asynchronously, but `importScripts()` is synchronous.  So we can keep a stack of currently loading scripts and just check if the current script is already loading once already.  If so, throw an exception as a loop was detected.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1570#issuecomment-792829297

Received on Monday, 8 March 2021 15:25:11 UTC