blob: ba43eea1e6db43ab0dcc69f213679827b4e47e4c [file] [log] [blame]
(function () {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'does-not-exist.js');
xhr.onerror = () => { postMessage('done'); };
xhr.send();
})();
// |xhr| isn't in scope, but it will signal pending activity
// when the GC runs, hence will be kept alive and allowed to
// run to completion.
self.gc();