Lines 17-18 of Patches.js incorrectly add an extra "function" string to the beginning of an async function, which then gets swapped around by lines 19-20 to read "async function function". Line 17 should be revised as follows:
- if (!fixed.startsWith("function"))
+ if (!(fixed.startsWith("function") || fixed.startsWith("async function")))
Lines 17-18 of Patches.js incorrectly add an extra "function" string to the beginning of an async function, which then gets swapped around by lines 19-20 to read "async function function". Line 17 should be revised as follows: