Closed JamesLMilner closed 4 years ago
Looks like the fix here is to just manually encode the URI instead of letting the browser do it.
We could potentially even just apply it to asyncFunction
here:
https://github.com/developit/greenlet/blob/d8467e0f45049dd71ee899dd73093d5137e41435/greenlet.js#L15
Update: if we switch back to Blob URLs to address the CSP issues, this error goes away.
This is fixed by #38.
More just an observation than a bug; Firefox doesn't appear to handle comments inside of the passed async function. This appears to be because it puts all the code onto one line which causes the parsing to break via a SyntaxError i.e.:
in short, this will cause an error:
but this does not: