Browse Source

Fix for locating the exception type when compiling with the units with namespace.

Henrique Gottardi Werlang 1 year ago
parent
commit
105fae6d48
1 changed files with 1 additions and 0 deletions
  1. 1 0
      utils/pas2js/dist/rtl.js

+ 1 - 0
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()];