From 105fae6d48fc3de538194ca1cd26d1a2ef500f26 Mon Sep 17 00:00:00 2001 From: Henrique Gottardi Werlang Date: Wed, 5 Jun 2024 19:22:15 -0300 Subject: [PATCH] Fix for locating the exception type when compiling with the units with namespace. --- utils/pas2js/dist/rtl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/pas2js/dist/rtl.js b/utils/pas2js/dist/rtl.js index 473ace2843..716f567858 100644 --- a/utils/pas2js/dist/rtl.js +++ b/utils/pas2js/dist/rtl.js @@ -527,6 +527,7 @@ var rtl = { if (t==null){ var mod = pas.SysUtils; if (!mod) mod = pas.sysutils; + if (!mod) mod = pas["System.SysUtils"]; if (mod){ t = mod[typename]; if (!t) t = mod[typename.toLowerCase()];