Browse Source

Fix parceStoreObjectValue function when dealing with ObjectArray

Lucas de Souza 5 years ago
parent
commit
83b70427d7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      js/processor/ivprogProcessor.js

+ 3 - 1
js/processor/ivprogProcessor.js

@@ -164,6 +164,8 @@ export class IVProgProcessor {
     return Promise.all(promises$).then(values => {
       for (let i = 0; i < values.length; i++) {
         const stoObj = values[i];
+        // console.log(calleeStore.name);
+        // console.log(stoObj);
         const exp = actualList[i];
         let shouldTypeCast = false;
         const formalParameter = formalList[i];
@@ -1079,7 +1081,7 @@ export class IVProgProcessor {
       if(vl.type instanceof ArrayType) {
         switch(vl.type.dimensions) {
           case 1: {
-            realValue = new StoreObjectArray(vl.type, vl.value);
+            realValue = new StoreObjectArray(vl.type, vl.value.length, null, vl.value);
             break;
           }
           default: {