canvasMaxAreaInBytes in DocumentInitParameters has type Boolean, preventing TypeScript users from passing the correct (numeric) value.
if (this.destroyed) {
            terminateEarly();
            return; 
          }
          try {
            sendTest();
          } catch (e) {
            
            this._setupFakeWorker();
          }
        });
        const sendTest = () => {
          const testObj = new Uint8Array();
          
          messageHandler.send("test", testObj, [testObj.buffer]);
        };
        
        
        
        sendTest();
        return;
      } catch (e) {
        info("The worker has been disabled.");
      }
    }
    
    
    this._setupFakeWorker();
  }
  _setupFakeWorker() {