fetch-event-add-async-worker.js (234B)
1 importScripts('/resources/testharness.js'); 2 3 promise_test(async () => { 4 await new Promise(handler => { step_timeout(handler, 0); }); 5 self.addEventListener('fetch', () => {}); 6 }, 'fetch event added asynchronously does not throw');