flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Tynjala (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLEX-34918) JS.swc is missing non-static indexOf() and lastIndexOf() in Array
Date Mon, 14 Nov 2016 16:25:59 GMT

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

Josh Tynjala closed FLEX-34918.
-------------------------------

> 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)

Mime
View raw message