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

Supports ES7 (specificially async/await) features? #4

Open
ORESoftware opened this issue Mar 27, 2016 · 2 comments
Open

Supports ES7 (specificially async/await) features? #4

ORESoftware opened this issue Mar 27, 2016 · 2 comments

Comments

@ORESoftware
Copy link

I doubt Needlepoint supports async/await because of this:

http://stackoverflow.com/questions/36243840/babel-transpile-getting-arguments-from-outer-function

am I wrong?

@ORESoftware ORESoftware changed the title Supports ES7 features Supports ES7 (specificially: async/await) features? Mar 27, 2016
@ORESoftware ORESoftware changed the title Supports ES7 (specificially: async/await) features? Supports ES7 (specificially async/await) features? Mar 27, 2016
@andrewmunsell
Copy link
Owner

I haven't tested it, but you're probably right about it not working. I'll look into adding support.

@ORESoftware
Copy link
Author

ORESoftware commented Apr 14, 2016

I am working on the same problem - let me know if you have any good insights. They way I have "solved" it, is in my API, if it's an async/await function, I know that only one param will be passed to it, so I just injected that one param as the only argument. This is of course works, but it's a special case of working; maybe you can come up with something better. Of course, once ES7 becomes native, it should work again, but there is that interim period to worry about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants