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 2015/07/24 23:49:04 UTC
[jira] [Created] (FLEX-34918) JS.swc is missing non-static
indexOf() and lastIndexOf() in Array
Josh Tynjala created FLEX-34918:
-----------------------------------
Summary: 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.0.3
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)