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 2017/05/30 20:23:04 UTC

[jira] [Resolved] (FLEX-35317) Generated require() call for Node.js modules does not produce valid code if module name includes dashes

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

Josh Tynjala resolved FLEX-35317.
---------------------------------
    Resolution: Fixed

> Generated require() call for Node.js modules does not produce valid code if module name includes dashes
> -------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-35317
>                 URL: https://issues.apache.org/jira/browse/FLEX-35317
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FalconJX 0.7.0
>            Reporter: Josh Tynjala
>            Assignee: Josh Tynjala
>            Priority: Minor
>             Fix For: Apache FalconJX 0.8.0
>
>
> The module is defined in ActionScript with metdata using a name that includes a dash.
> {code}
> [JSModule(name="my-module")]
> {code}
> The generated JavaScript code looks like this:
> {code}
> var my-module = require("my-module);
> {code}
> However, that's not a valid variable name. It should produce something like this (with automatic camel casing, similar to externc):
> {code}
> var myModule = require("my-module");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)