aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2025-06-11 14:15:29 +0200
committerUlf Hermann <ulf.hermann@qt.io>2025-06-17 22:11:24 +0200
commit51e50ec86fb001658d0d03356472addc558657a7 (patch)
tree6b934a42e1e9c3b2e8f6f43be6479a7ac77d5772 /src/qml/jsruntime/qv4script.cpp
parenta1a02f934a35f12f153aeb601222f934610f7402 (diff)
QtQml: Avoid direct file access in ECMAScript test runner
We want the type loader to do this job rather than poorly duplicate it in the test. In particular, the local implementation didn't properly register the dependencies of loaded ECMAScript modules. So far we could only load ECMAScript modules using the type loader if their file names ended it ".mjs". The ECMAScript test suite does not follow this convention. In order to deal with that, we need to add a second characteristic. ECMAScript modules can now also be marked using a URL fragment "#module". Furthermore, since JavaScript files loaded outside any QML document get full access to the global context, we introduce another URL fragment "#global" to discern them from the same files loaded from a QML document. Change-Id: I625088335d16d5b8eeaa2673f07718367dca1605 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
0 files changed, 0 insertions, 0 deletions