*)';
    const dataURL = `data:text/javascript,import "${importURL}";`;
    const worker = new Worker(dataURL, { type: 'module' });
    worker.postMessage('Send message for tests from main script.');
    const msgEvent =
        await new Promise(resolve => worker.onmessage = resolve);
    assert_array_equals(msgEvent.data,
        expectation === 'blocked' ? ['ERROR']
                                  : ['export-block-cross-origin.js']);
  }, `${importType} import ${isDataURL ? 'data url' : 'script'} from 