Skip to content

Require with an uppercase make a new instance of module on mac osx #5143

Closed
@samrm111

Description

@samrm111

Given a file named test.js,
Using require in those two way will works, but node will create a new instance for each:
require('./test.js') and require('./Test.js')
Tested on Mac osx 10.11.1 with node 4.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.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