Configuration:
- Web browser and its version: Firefox 104.0.2
- Operating system and its version: Windows 10
- PDF.js version: 2.16.105
- Is a browser extension: no

Steps to reproduce the problem:
1. Configure the worker using the workerPort

    E.g Using either importing the webpack.js (worker loader and webpack v4):
    import * as pdfjsLib from 'pdfjs-dist/webpack';
    
    Or with webpack 5 (worker loader deprecated):
    import * as pdfjsLib from 'pdfjs-dist/build/pdf';
    const pdfJsWorker = new Worker(new URL('pdfjs-dist/build/pdf.worker', import.meta.url));
    if (typeof window !== 'undefined' && 'Worker' in window) {
        pdfjsLib.GlobalWorkerOptions.workerPort = pdfJsWorker;
    }
    
    Then get the document (we have an endpoint called '/test' to download the pdf), setting the verbosity as an option:
    const options = {
         url: '/test',
         verbosity: 0,
    };
      
    const loadingTask = pdfjsLib.getDocument(options);

2. What is the expected behavior?

    For worker to respect logging level set when getting the document, no matter how the worker is initialized.
    
    We are using the webpack 5 method above.
    
    Fixed by posting a message to the worker:
    pdfJsWorker.postMessage({
                    sourceName: 'viewer',
                    targetName: 'worker',
                    action: 'configure',
                    data: {verbosity: 0},
                });

3. What went wrong?

    Warning's still appear in the console such as Undefined function 32
    
    After further digging, these are output from the worker, which still has verbosity as the default.
    
    Digging even further, found that the verbosity isn't updated on the worker if worker is initialized from the port - it is when initialized from src path.

*/
/**
 * @typedef { TypedArray | ArrayBuffer | Array<number> | string } BinaryData
 */
/**
 * @typedef {Object} RefProxy
 * @property {number} num
 * @property {number} gen
 */
/**
 * Document initialization / loading parameters object.
 *
 * @typedef {Object} DocumentInitParameters
 * @property {string | URL} [url] - The URL of the PDF.
 * @property {BinaryData} [data] - Binary PDF data.
 *   Use typed arrays (Uint8Array) to improve the memory usage. If PDF data is
 *   BASE64-encoded, use `atob()` to convert it to a binary string first.
 * @property {Object} [httpHeaders] - Basic authentication headers.
 * @property {boolean} [withCredentials] - Indicates whether or not
 *   cross-site Access-Control requests should be made using credentials such
 *   as cookies or authorization headers. The default is `false`.
 * @property {string} [password] - For decrypting password-protected PDFs.
 * @property {TypedArray} [initialData] - A typed array with the first portion
 *   or all of the pdf data. Used by the extension since some data is already
 *   loaded before the switch to range requests.
 * @property {number} [length] - The PDF file length. It's used for progress
 *   reports and range requests operations.
 * @property {PDFDataRangeTransport} [range] - Allows for using a custom range
 *   transport implementation.
 * @property {number} [rangeChunkSize] - Specify maximum number of bytes fetched