diff options
author | Olivier De Cannière <[email protected]> | 2025-10-16 09:21:05 +0200 |
---|---|---|
committer | Olivier De Cannière <[email protected]> | 2025-10-20 09:03:10 +0200 |
commit | 72e12635d81cd86362a3eaf2951160550c3a3ab1 (patch) | |
tree | 4000bacb24e2dc74bba896586e33160d5d828056 | |
parent | 4f4b36ba4fd17476f4bba18bbe16e299db408c01 (diff) |
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.cpp | 2 |
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, " |