Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12
-
627226520a2bbb977ce32a21bdffd2004cb28796 (qt/qtdeclarative/5.12.0)
Description
Seems that now the value of x is undefined with latest from dev branch:
.pragma library
const x = 123;
import QtQml 2.0 import "js.js" as JS QtObject { Component.onCompleted: console.log(JS.x); }
Attachments
Issue Links
- relates to
-
QTBUG-74068 [REG 5.11->5.12.0]: Using Qt.include() does not work correctly as it will give a reference error when trying to access a variable defined in it
- Closed
For Gerrit Dashboard: QTBUG-69408 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
241435,5 | Add test for importing let/const variables from scripts | 5.12 | qt/qtdeclarative | Status: MERGED | -2 | 0 |
242392,2 | QQmlScriptData: Extract qmlContextDataForContext from scriptValueForContext | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
242393,6 | Clone ContextType::Global as ContextType::ScriptImportedByQML | 5.12.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
242394,2 | Promote let/const to var for ContextType::ScriptImportedByQML | 5.12 | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
242395,5 | Expose let/const variables from imported JS scripts | 5.12.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
243851,1 | Add test for importing let/const variables from scripts | 5.12.0 | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |