Skip to content

>=1.6.2 break require('.') with NODE_PATH #1356

Closed
@a8m

Description

@a8m

Running iojs until >=v.1.6.1 allow to use require('.')(i.e: index.js) with NODE_PATH.
Using >=v1.6.2 throw an error.

Example:

$ NODE_PATH=src node

// Start repl

> require('.')
Error: Cannot find module '.'
...
...

Could anyone please confirm this regression, so I could work on a fix.
Thx

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