Given the code
async function foo() { mw.log('test'); } foo();
where only the first line is important, the following error is thrown from loader
JavaScript parse error: Parse error: Missing ; before statement in file 'Bruker:Jeblad/common.js' on line 1
Use of async/await is pretty new, but most browsers support it; MDN: async function.