You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Piotr Zarzycki (JIRA)" <ji...@apache.org> on 2016/05/02 23:11:13 UTC

[jira] [Updated] (FLEX-35004) package-level functions do not get cross-compiled

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

Piotr Zarzycki updated FLEX-35004:
----------------------------------
    Fix Version/s: Apache FalconJX 0.6.0

> 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
>             Fix For: Apache FalconJX 0.6.0
>
>
> Example file (packageLevelFunction.as):
> {code}
> package foo.bar {
> 	public function packageLevelFunction(a:int, b:int):int {
> 		return a + b;
> 	}
> }
> {code}
> 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:
> {code}
> goog.provide('foo.bar.packageLevelFunction');
> foo.bar.packageLevelFunction = function(a, b) { return a + b; };
> {code}



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