If nextTask leaves task.pdfDoc as undefined then sendTaskResult will fail on that. SendTaskResult tries to access task.pdfDoc.numPages which cannot succeed. This leads to a complete stop in the browser-test.
If nextTask leaves task.pdfDoc as undefined then sendTaskResult will fail on that. SendTaskResult tries to access task.pdfDoc.numPages which cannot succeed. This leads to a complete stop in the browser-test.