Skip to content

cannot resolve main script if -r options specified, flag with value specified and main script file path contains only file name. #1691

Description

@develar
iojs --expose_debug_as=v8debug -r ./p.js file.js
module.js:339
    throw err;
          ^
Error: Cannot find module 'file.js'

Works correctly, if "--expose_debug_as=v8debug " is not specified.

Test project (files file.js and p.js) — https://dl.dropboxusercontent.com/u/43511007/s/test.zip

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

    confirmed-bugIssues and PRs for confirmed bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions