1'use strict'; 2importScripts('/resources/testharness.js', 'helpers.js'); 3 4const promise = testMessageEvent(self); 5promise 6 .then(() => postMessage('OK')) 7 .catch(err => postMessage(`BAD: ${err}`)); 8
1'use strict'; 2importScripts('/resources/testharness.js', 'helpers.js'); 3 4const promise = testMessageEvent(self); 5promise 6 .then(() => postMessage('OK')) 7 .catch(err => postMessage(`BAD: ${err}`)); 8