await-semaphore
await-semaphore copied to clipboard
Error using Mutex
I use your package in Ionic 2 project
when using
var mutex = new Mutex();
I get the following error messages:
with target es5 [INFO:CONSOLE(95562)] "Uncaught SyntaxError: <unknown message reserved_word>", source: file:///android_asset/www/build/main.js (95562)
with target es6 [INFO:CONSOLE(10764)] "Uncaught SyntaxError: Use of future reserved word in strict mode", source: file:///android_asset/www/build/main.js (10764)
The same with Semaphore
I use:
"typescript": "2.0.9"
maybe this is the problem.
I'm not sure why you are getting this error. What is on main.js:10764?
I thing the problem is in using in Ionic es5 as the target. I will test it with the new versions of ionic and I will tell you know.