await-semaphore icon indicating copy to clipboard operation
await-semaphore copied to clipboard

Error using Mutex

Open ironbone opened this issue 8 years ago • 2 comments

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.

ironbone avatar Jan 03 '17 11:01 ironbone

I'm not sure why you are getting this error. What is on main.js:10764?

notenoughneon avatar Jan 04 '17 02:01 notenoughneon

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.

ironbone avatar Jan 04 '17 15:01 ironbone