microsoft / Chakra-Samples

Repository for Chakra JavaScript engine related samples.
MIT License
216 stars 84 forks source link

Enable beta features #77

Closed Alphapage closed 7 years ago

Alphapage commented 7 years ago

Hello,

Is it possible to enable javascript es 6 features like modules ? How do you handle the requested import path ?

Thank you in advance for your help.

liminzhu commented 7 years ago

Sorry for the late response @Alphapage . You can enable experimental features by passing the JsRuntimeAttributeEnableExperimentalFeatures flag to JsCreateRuntime. Module is special as it needs a bit extra work on the host side, see https://github.com/Microsoft/ChakraCore/pull/1254.

Alphapage commented 7 years ago

No problem. Thank you for the info. I just need to find an example on how to implement modules or to dig into some tests cases.