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

"try catch {}" causing SyntaxError: Unexpected token { in node 8.11.3 #54

Closed
gutimore opened this issue Apr 30, 2021 · 1 comment
Closed

Comments

@gutimore
Copy link

Please guys, replace this expression in index.js:

	try { await result; } catch {}

for this one

           try { await result; }  catch (e) {}

It's causing problems in older node versions

Thanks!

@sindresorhus
Copy link
Owner

Duplicate of #33

@sindresorhus sindresorhus marked this as a duplicate of #33 Apr 30, 2021
Repository owner locked as resolved and limited conversation to collaborators Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants