From 647ad65f76735d5f36f33a6fcfa1410f331dccf6 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 11 Dec 2024 15:53:42 +0100 Subject: 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 Reviewed-by: Fabian Kosmale --- src/qml/compiler/qv4codegen.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/qml/compiler/qv4codegen.cpp') 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 -- cgit v1.2.3