You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/01/19 05:47:07 UTC

[GitHub] jgranick opened a new issue #384: Cannot find Vector. methods

jgranick opened a new issue #384: Cannot find Vector.<T> methods
URL: https://github.com/apache/royale-asjs/issues/384
 
 
   Hello!
   
   Testing the latest 0.9.6 Apache Royale ASJS nightly, I'm getting these runtime errors for the Starling Framework:
   
   ![image](https://user-images.githubusercontent.com/833997/51422813-65ce1a00-1b6a-11e9-97d9-96d221cd596e.png)
   
   I also get similar errors for `insertAt` as well.
   
   I can't tell where `Vector` is defined, except this definition I see in "Language.js"
   
   ```js
   org.apache.royale.utils.Language.Vector = function(size, basetype) {
     size = typeof size !== 'undefined' ? size : 0;
     basetype = typeof basetype !== 'undefined' ? basetype : null;
     var /** @type {Array} */ arr = [];
     var /** @type {Object} */ defValue = null;
     if (basetype == "int" || basetype == "uint" || basetype == "Number") {
       defValue = 0;
     } else if (basetype == "String") {
       defValue = "";
     }
     for (var /** @type {number} */ i = 0; i < size; i++)
       arr.push(defValue);
     return arr;
   };
   ```
   
   Where are `insertAt`, `removeAt` or other `Vector` methods defined? I also see the *.as extern files, which do define the methods, but we have this problem at runtime.
   
   Thank you

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services