You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Andy Dufilie (JIRA)" <ji...@apache.org> on 2015/12/11 21:58:46 UTC
[jira] [Created] (FLEX-34990) "new" operator combined with function
invocation cross-compiles incorrectly
Andy Dufilie created FLEX-34990:
-----------------------------------
Summary: "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
Priority: Minor
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)