async icon indicating copy to clipboard operation
async copied to clipboard

'Undefined' async window variable.

Open TheSpiciestDev opened this issue 11 years ago • 3 comments

The device is an Android (2.3.5) using its stock browser (2.3.5).

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
  </head>
  <body>
    <script src="async.js"></script>
    <script>
      alert(window.async);
    </script>
  </body>
</html>
async.js:1198
Uncaught SyntaxError: Unexpected token catch

I copied @yourfriendgerasim's code from #864 and I could not make it to the .each and got the same error as just above.

TheSpiciestDev avatar Jul 31 '15 11:07 TheSpiciestDev

What version of async are you using?

megawac avatar Aug 04 '15 14:08 megawac

I've hosted 1.4.0 along-side the .html example above and have also tried referencing via https://cdnjs.com/libraries/async Both approaches result the same. All my current devices ran the .html and async fine, it has just been my old Android with this problem.

TheSpiciestDev avatar Aug 04 '15 18:08 TheSpiciestDev

Looks like Android 2.3 is balking at the use of Promise#catch.

aearly avatar Aug 07 '15 20:08 aearly