mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
f57af194fb
Writing a Promise as: ``` const promise = new Promise(async (resolve, reject) => { return await 'foo'; }); ``` Is equivalent to an IIFE: ``` const promise = (async () => { return await 'foo'; })(); ``` A recent change introduced by MDL-74301 picks this up. This commit addresses this flagged issue.