Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Undefined' async window variable. #870

Closed
METACEO opened this issue Jul 31, 2015 · 3 comments
Closed

'Undefined' async window variable. #870

METACEO opened this issue Jul 31, 2015 · 3 comments
Labels

Comments

@METACEO
Copy link

METACEO commented Jul 31, 2015

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.

@megawac
Copy link
Collaborator

megawac commented Aug 4, 2015

What version of async are you using?

@METACEO
Copy link
Author

METACEO commented Aug 4, 2015

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.

@aearly
Copy link
Collaborator

aearly commented Aug 7, 2015

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

@aearly aearly added the bug label Aug 7, 2015
@aearly aearly closed this as completed in aa2c889 Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants