Explorar el Código

pastojs: fixed impl rtti

git-svn-id: trunk@46817 -
Mattias Gaertner hace 4 años
padre
commit
aae5c452cb
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      utils/pas2js/dist/rtl.js

+ 6 - 6
utils/pas2js/dist/rtl.js

@@ -109,20 +109,20 @@ var rtl = {
       rtl.error('module "'+module_name+'" is already registered');
       rtl.error('module "'+module_name+'" is already registered');
 
 
     var r = Object.create(rtl.tSectionRTTI);
     var r = Object.create(rtl.tSectionRTTI);
-    var module = pas[module_name] = {
+    var module = r.$module = pas[module_name] = {
       $name: module_name,
       $name: module_name,
       $intfuseslist: intfuseslist,
       $intfuseslist: intfuseslist,
       $impluseslist: impluseslist,
       $impluseslist: impluseslist,
       $state: rtl.m_loading,
       $state: rtl.m_loading,
       $intfcode: intfcode,
       $intfcode: intfcode,
       $implcode: null,
       $implcode: null,
-      $impl: impluseslist?{
-          $module: module,
-          $rtti: r
-        }:null,
+      $impl: null,
       $rtti: r
       $rtti: r
     };
     };
-    module.$rtti.$module = module;
+    if (impluseslist) module.$impl = {
+          $module: module,
+          $rtti: r
+        };
   },
   },
 
 
   exitcode: 0,
   exitcode: 0,