flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Tynjala (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35317) Generated require() call for Node.js modules does not produce valid code if module name includes dashes
Date Tue, 30 May 2017 20:23:04 GMT
Josh Tynjala created FLEX-35317:
-----------------------------------

             Summary: 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)

Mime
View raw message