Skip to content

Should getenv() map to process.env in node.js? #11422

Description

@zeux

Apologies if this has already been discussed in a different issue, I wasn't able to find one.

In node.js, Emscripten more or less behaves as a native program:

  • You get access to native file system when NODERAWFS is specified
  • You get access to spawning processes via system()
  • However, getenv() is virtualized instead of using process.env

This can be worked around using EM_JS et al of course, but is there a reason why getenv() doesn't just magically work on node by looking for the key in process.env?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions