[ 
https://issues.apache.org/jira/browse/FLEX-34990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15081920#comment-15081920
 ] 

Alex Harui commented on FLEX-34990:
-----------------------------------

After some discussion: 
https://github.com/apache/flex-falcon/commit/3971196a4478853e1fd443e21e011ee1b8ea14c8#commitcomment-15223588

Another change was made: 56c262ab3753d4927ef6343d2a09eb6a264009f3

> "new" operator combined with function invocation cross-compiles incorrectly
> ---------------------------------------------------------------------------
>
>                 Key: FLEX-34990
>                 URL: https://issues.apache.org/jira/browse/FLEX-34990
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon, FlexJS
>    Affects Versions: Apache FlexJS 0.5.0
>            Reporter: Andy Dufilie
>            Assignee: Alex Harui
>            Priority: Minor
>             Fix For: Apache FalconJX 0.6.0
>
>
> AS input:
> {code}
> public static function test():* {
>       var Fn:Class = Function;
>       return new Fn("a", "b", "return a + b;")(1, 2);
> }
> {code}
> Incorrect JS output:
> {code}
> TestClass.test = function() {
>   var /** @type {Object} */ Fn = Function;
>   return new Fn("a", "b", "return a + b;", 1, 2);
> };
> {code}
> Expected output:
> {code}
> TestClass.test = function() {
>   var /** @type {Object} */ Fn = Function;
>   return new Fn("a", "b", "return a + b;")(1, 2);
> };
> {code}



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

Reply via email to