[Interest] Re：Re: Could I use V8 engine directly in QT?
z.hang.1992 at foxmail.com
Fri Dec 9 02:04:14 CET 2022
I have found some articles said that before Qt 5.2, qml used the v8 engine,
and start @t 5.2, the qml uses the v4vm engine which is a new developed
And in the v4vn engine, it comply the ECMAScript 7 standard in the latest
version, and for this version, the asynchronous function is not supported.
For me, It would be a big effort to add the feature.
And as I mentioned the "v8 (10.2.154)" seems only used by Qt webengine
> Hi Bob,
> What is this v8 you're referring to (in terms of QJSEngine I mean)? Can
> you explain "it used" further?
> It's possible, in many/most cases, to extend or even replace the
> built-in JS types in QJSEngine (not QQmlEngine). Either with pure JS
> implementations or C++ or a mix. I'm not sure about adding language
> syntax constructs like async/await though (but you can already use
> Promises, for example).
> On 12/7/2022 3:59 AM, z.hang.1992 wrote:
> > Hi,
> > but I found it does not support the latest EMACScript standards, e.g,
> > async/await and string.prototype.replaceAll(). But the v8(10.2.154) it
> > used supports these. Seems QV4 implements the ECMAC by itself.
> > So, Is there any way to use v8 directly in QT?
> > It would be good to have some suggestions from you, maybe my
> > understanding about QJSEngine is totally wrong.
> > Thanks, and have a nice day!
> > Bob
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest