Clearscript: ES6 support question

Created on 15 Feb 2020  路  3Comments  路  Source: microsoft/ClearScript

Do ClearScript will support ES6 standard? any plan?

question

All 3 comments

Hi @drearyrainDeng,

For JavaScript, ClearScript supports JScript and V8. JScript supports ES3 and select features from subsequent standards. V8 supports ES7 and beyond.

Thanks!

that is great,thanks

@ClearScriptLib above you mentioned that " V8 supports ES7 and beyond." when i try to run the following code.

 engine.Evaluate(@"async function process1(data) {
                                return { xValue: 'asdasd' };
                            }");

var toReturn = engine.Script.process1(data);

I get the following error "no further information on this object could be discovered"

If i remove the async then it works fine, but having said that async is an ES7 feature

Was this page helpful?
0 / 5 - 0 ratings