Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

default filename should be a uuid #24

Description

@ORESoftware

something like this:

function requireFromString2(src, filename) {
  var Module = module.constructor;
  filename = filename || uuid();    // <<<<  instead of defaulting to '', default to a uuid
  var m = new Module();
  m._compile(src, filename);
  return m;  // return module not module.exports, so the user can get to the filename or whatnot
}

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions