<div class="qmbox"><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);"></div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">Hi Max,</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);"><br  /></div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">The v8 is google ve JavaScript engine, but I have misunderstood this,</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">I have found some articles said that before Qt 5.2, qml used the v8 engine,</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">and start @t 5.2, the qml uses the v4vm engine which is a new developed</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">JavaScript engine, and mainly for qml.</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);"><br  /></div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">And in the v4vn engine, it comply the ECMAScript 7 standard in the latest</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">version, and for this version, the asynchronous function is not supported.</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">For me, It would be a big effort to add the feature.</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);"><br  /></div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">And as I mentioned the "v8 (10.2.154)" seems only used by Qt webengine</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">now.</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);"><br  /></div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">Thanks.</div><div style="font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10.5pt; color: rgb(46, 48, 51);">Bob</div><div><br  /></div><div>> Hi Bob,</div><div>> </div><div>> What is this v8 you're referring to (in terms of QJSEngine I mean)? Can</div><div>> you explain "it used" further?</div><div>> </div><div>> It's possible, in many/most cases, to extend or even replace the</div><div>> built-in JS types in QJSEngine (not QQmlEngine). Either with pure JS</div><div>> implementations or C++ or a mix. I'm not sure about adding language</div><div>> syntax constructs like async/await though (but you can already use</div><div>> Promises, for example).</div><div>> </div><div>> -Max</div><div>> </div><div>> </div><div>> On 12/7/2022 3:59 AM, z.hang.1992 wrote:</div><div>> > Hi,</div><div>> ></div><div>> > Currently, I'm using QT 6.4.1, and I use QJSEngine to run JavaScript,</div><div>> > but I found it does not support the latest EMACScript standards, e.g,</div><div>> > async/await and string.prototype.replaceAll(). But the v8(10.2.154) it</div><div>> > used supports these. Seems QV4 implements the ECMAC by itself.</div><div>> ></div><div>> > So, Is there any way to use v8 directly in QT?</div><div>> ></div><div>> > It would be good to have some suggestions from you, maybe my</div><div>> > understanding about QJSEngine is totally wrong.</div><div>> ></div><div>> > Thanks, and have a nice day!</div><div>> ></div><div>> > Bob</div><div>> ></div><div>> > _______________________________________________</div><div>> > Interest mailing list</div><div>> > Interest@qt-project.org</div><div>> > https://lists.qt-project.org/listinfo/interest</div><div>> _______________________________________________</div><div>> Interest mailing list</div><div>> Interest@qt-project.org</div>> https://lists.qt-project.org/listinfo/interest<div class="xm_compose_origin_mail_container"><span class="xm_compose_origin_mail_container_sign" style="display: none;"></span></div></div>