flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Dufilie (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35004) package-level functions do not get cross-compiled
Date Thu, 24 Dec 2015 06:25:49 GMT
Andy Dufilie created FLEX-35004:

             Summary: package-level functions do not get cross-compiled
                 Key: FLEX-35004
                 URL: https://issues.apache.org/jira/browse/FLEX-35004
             Project: Apache Flex
          Issue Type: Bug
          Components: Falcon, FlexJS
    Affects Versions: Apache FlexJS 0.5.0
            Reporter: Andy Dufilie
            Priority: Minor

Example file (packageLevelFunction.as):
package foo.bar {
	public function packageLevelFunction(a:int, b:int):int {
		return a + b;

This file works fine in ActionScript, but when cross-compiling to JavaScript, the output file
(packageLevelFunction.js) is blank. It should generate something like this:

foo.bar.packageLevelFunction = function(a, b) { return a + b; };

This message was sent by Atlassian JIRA

View raw message