You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Josh Tynjala (JIRA)" <ji...@apache.org> on 2016/11/14 16:24:58 UTC

[jira] [Resolved] (FLEX-34918) JS.swc is missing non-static indexOf() and lastIndexOf() in Array

     [ https://issues.apache.org/jira/browse/FLEX-34918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Tynjala resolved FLEX-34918.
---------------------------------
    Resolution: Fixed

> JS.swc is missing non-static indexOf() and lastIndexOf() in Array
> -----------------------------------------------------------------
>
>                 Key: FLEX-34918
>                 URL: https://issues.apache.org/jira/browse/FLEX-34918
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FalconJX 0.5.0
>            Reporter: Josh Tynjala
>
> The es3.js externs file defines the following functions:
> Array.prototype.indexOf = function(obj, opt_fromIndex) {};
> Array.prototype.lastIndexOf = function(obj, opt_fromIndex) {};
> Array.indexOf = function(arr, obj, opt_fromIndex) {};
> Array.lastIndexOf = function(arr, obj, opt_fromIndex) {};
> However, the Array.as output from externc only defines the static versions. The non-static versions are missing from this file:
> public static function lastIndexOf(arr:Object, obj:Object, opt_fromIndex:Object = null):Object {  return null; }
> public static function indexOf(arr:Object, obj:Object, opt_fromIndex:Object = null):Object {  return null; }
> Perhaps the duplicate name is causing the non-static versions to be skipped?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)