Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35317

Generated require() call for Node.js modules does not produce valid code if module name includes dashes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Apache FalconJX 0.7.0
    • Apache FalconJX 0.8.0
    • FalconJX
    • None

    Description

      The module is defined in ActionScript with metdata using a name that includes a dash.

      [JSModule(name="my-module")]
      

      The generated JavaScript code looks like this:

      var my-module = require("my-module);
      

      However, that's not a valid variable name. It should produce something like this (with automatic camel casing, similar to externc):

      var myModule = require("my-module");
      

      Attachments

        Activity

          People

            joshtynjala Josh Tynjala
            joshtynjala Josh Tynjala
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: