Cannot use console.warn when running in a web worker