aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier De Cannière <[email protected]>2025-10-16 09:21:05 +0200
committerOlivier De Cannière <[email protected]>2025-10-20 09:03:10 +0200
commit72e12635d81cd86362a3eaf2951160550c3a3ab1 (patch)
tree4000bacb24e2dc74bba896586e33160d5d828056
parent4f4b36ba4fd17476f4bba18bbe16e299db408c01 (diff)
Compiler: Actually read the value of a key passed to qmltypesHEADdev
We always set isJavaScriptBuiltin to true if the key was present instead of actually reading the value. This seems to have worked because the key was only added when it was true and the default value is false. Amends 578946437fb31edd6aa78612e9db8fed9a3eb210 Pick-to: 6.10 6.8 Change-Id: I91f533129d233b251e221bf05abdc919eb8957c6 Reviewed-by: Sami Shalayel <[email protected]> Reviewed-by: Fabian Kosmale <[email protected]>
-rw-r--r--src/qmlcompiler/qqmljstypedescriptionreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljstypedescriptionreader.cpp b/src/qmlcompiler/qqmljstypedescriptionreader.cpp
index a1ff5698e4..0384012e98 100644
--- a/src/qmlcompiler/qqmljstypedescriptionreader.cpp
+++ b/src/qmlcompiler/qqmljstypedescriptionreader.cpp
@@ -252,7 +252,7 @@ void QQmlJSTypeDescriptionReader::readComponent(UiObjectDefinition *ast)
} else if (name == QLatin1String("immediateNames")) {
readImmediateNames(script, scope);
} else if (name == QLatin1String("isJavaScriptBuiltin")) {
- scope->setIsJavaScriptBuiltin(true);
+ scope->setIsJavaScriptBuiltin(readBoolBinding(script));
} else {
addWarning(script->firstSourceLocation(),
tr("Expected only lineNumber, name, prototype, defaultProperty, "