Fix exceptions when running mocha in Web Workers.
Web Worker reporter and tests.