sindresorhus / p-limit

Run multiple promise-returning & async functions with limited concurrency
MIT License
1.84k stars 99 forks source link

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

Closed gutimore closed 3 years ago

gutimore commented 3 years ago

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 commented 3 years ago

Duplicate of #33