-
Notifications
You must be signed in to change notification settings - Fork 316
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
Async/await in chakra #741
Comments
Have you tried using JXcore with babel? Here is tutorial for that |
No, I mean native support for async/await as in Edge browser from Microsoft. |
From what I read here: Asynchronous programming (scroll down to the bottom to "Asynchronous patterns in UWP using JavaScript") you're not going to use "async"/"wait" exactly. Instead you're going to use promises. However I'm not sure if they are available out-of-the-box in chakra embedded in JXcore, are they? |
@ktrzeciaknubisa I have installed node from Microsoft with chakra and this version of node have almost all features from es2015 and also async/await. |
@xgrommx MS node and JXcore - chakra are exactly same when it comes to JS features. Can you elaborate on it ? |
Chakra runtime needs to be initialized with See https://github.com/jxcore/jxcore/blob/master/deps/chakrashim/src/jsrtisolateshim.cc#L62 and replace or extend |
@obastemur Is it means that jxcore will be to support some experimental features like a async/await? |
@xgrommx As far as I understand, yes.
@obastemur As far as I understand, @xgrommx got Microsoft Node working with experimental features ( |
@DenysStoianov @xgrommx @RReverser Yes.
AFAIK; Not possible. The only working Microsoft Node version was using previous WinSDK. Previous WinSDK doesn't have matching Chakra base for that particular experimental feature. AFAIK there is no Microsoft Node release working on updated 10.586 Windows. Although some weeks ago I made the commits to Microsoft Node for Windows Update, there is no new release on their end yet. (Don't know if they made anything last week, I wasn't around most of the time) |
@obastemur @RReverser these is my steps for reproducing https://github.com/Microsoft/node/blob/chnext/IoT-Readme.md#step-1-set-up-your-pc I have installed nodejs tool for visual studio and it works out of the box. |
@xgrommx that is for IoT only and it doesn't work on updated Windows IoT setup anyways. This feature was enabled with 13.547 (After previous stable Windows Update). @obastemur I'm +1 on enabling it by default. |
Hello everyone. As I understood you have included chakra in jxcore. But I have some question about async/await. How can I use this one in my a sample project?
The text was updated successfully, but these errors were encountered: