aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-12-11 15:53:42 +0100
committerUlf Hermann <ulf.hermann@qt.io>2024-12-13 15:12:14 +0100
commit647ad65f76735d5f36f33a6fcfa1410f331dccf6 (patch)
tree334cf5282b7df82a880b90c3b9e2650c5ba3c839 /src/qml/compiler/qv4codegen.cpp
parent2bb06d581e672c957a4f9d49f39635399f9c839a (diff)
QtQml: Update global names
These are the actual global names as present in the global object. We should use the same ones everywhere. Change-Id: I4fb42f609b656019db5169fd4ea2b243feab18d6 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index aaaa4aebf6..de08c4fd08 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -113,6 +113,7 @@ const char *Codegen::s_globalNames[] = {
"ArrayBuffer",
"Atomics",
"Boolean",
+ "DOMException",
"DataView",
"Date",
"Error",
@@ -132,10 +133,15 @@ const char *Codegen::s_globalNames[] = {
"Object",
"Promise",
"Proxy",
+ "QT_TRANSLATE_NOOP",
+ "QT_TRID_NOOP",
+ "QT_TR_NOOP",
+ "Qt",
"RangeError",
"ReferenceError",
"Reflect",
"RegExp",
+ "SQLException",
"Set",
"SharedArrayBuffer",
"String",
@@ -143,22 +149,31 @@ const char *Codegen::s_globalNames[] = {
"SyntaxError",
"TypeError",
"URIError",
+ "URL",
+ "URLSearchParams",
"Uint16Array",
"Uint32Array",
"Uint8Array",
"Uint8ClampedArray",
"WeakMap",
"WeakSet",
+ "XMLHttpRequest",
+ "console",
"decodeURI",
"decodeURIComponent",
"encodeURI",
"encodeURIComponent",
"escape",
"eval",
+ "gc",
"isFinite",
"isNaN",
"parseFloat",
"parseInt",
+ "print",
+ "qsTr",
+ "qsTrId",
+ "qsTranslate",
"undefined",
"unescape",
nullptr