Closed dessaya closed 7 years ago
It's probably a nodent/babel issue. It works in the nodent playground at http://nodent.mailed.me.uk/#export%20const%20A%20%3D%20''%3B%0A%0Aclass%20B%20%7B%0A%20%20async%20f()%20%7B%0A%20%20%20%20await%20g()%3B%0A%20%20%7D%0A%7D%0A
I'll try and take a look and see if there's a simple patch in the next day or two
Scrub this - it's not true!!
Quick workaround - applying fast-async after es2015 seems to work:
babel.js --presets es2015 --plugins fast-async < tests/test-input.js
I'll dig a bit deeper and see what the unpleasant interaction actually is
Hi, I'm trying to switch from
transform-async-to-module-method
tofast-async
, and I bumped into this error. I reduced the code to this minimal example:test.js:
.babelrc:
And it produces the following error:
Is this a bug in
fast-async
, or perhaps something wrong in my code?Thanks!