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

Closed
@develar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions