Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Getting started with NodeGUI, a Qt-based library for desktop applications. Parent comment
"The JavaScript engine now supports ECMAScript 7. This includes an upgrade to ECMAScript 6"
and:
"ECMAScript modules can now be loaded directly with QJSEngine::importModule() [ https://doc.qt.io/qt-5/qjsengine.html#importModule] and imported in .qml files when using the .mjs file extension."
Although, it looks like the ECMAScript 7 support might be incomplete, with Promises perhaps being buggy and arrow functions perhaps not working: https://forum.qt.io/topic/100526/what-parts-of-ecmascript-7-...
Looks like transpiling with Babel works fairly well for a lot of things
relevant discussion: https://bugreports.qt.io/browse/QTBUG-47735
There are no comments on this comment yet.
"The JavaScript engine now supports ECMAScript 7. This includes an upgrade to ECMAScript 6"
and:
"ECMAScript modules can now be loaded directly with QJSEngine::importModule() [ https://doc.qt.io/qt-5/qjsengine.html#importModule] and imported in .qml files when using the .mjs file extension."
Although, it looks like the ECMAScript 7 support might be incomplete, with Promises perhaps being buggy and arrow functions perhaps not working: https://forum.qt.io/topic/100526/what-parts-of-ecmascript-7-...
Looks like transpiling with Babel works fairly well for a lot of things
relevant discussion: https://bugreports.qt.io/browse/QTBUG-47735