Sitelet https://github.com/nodejs/node/issues/2272
Skip to content

Internal modules problem with $ in identifiers on AIX #2272

Description

@mhdawson

Support for internal modules was added in:

2db758c

As part of this, this line in tools/utils.py converts a path name into an identifier

   escaped_id = id.replace('/', '$')

Unfortunately support for a $ in an identifier is implementation specific and is not supported on AIX which causes compiler failures on the generated node_natives.h file.

I'd propose to change the line to:

  escaped_id = id.replace('/', '_')

@vkurchatkin comments ?

Activity

  1. vkurchatkin commented on Jul 29, 2015

    @vkurchatkin
    Contributor

    I think it's fine. I chose $ instead of _ in the first place to avoid possible collisions, it's rather unlikely that we will have $ in paths, but in generally it's not a big deal, I think.

  2. changed the title [-]Internal modules problem with $ in identifiers[/-] [+]Internal modules problem with $ in identifiers on AIX[/+] on Jul 30, 2015
  3. mhdawson commented on Jul 30, 2015

    @mhdawson
    MemberAuthor

    Thanks, I'll include that change when I submit the PR to add AIX support

  4. brendanashworth commented on Sep 15, 2015

    @brendanashworth
    Contributor

    I think this can be closed for now, with discussion continuing on #2364. It can always be reopened, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    moduleIssues and PRs related to the module subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions