Skip to content

Non-package.json conform json file causes an infinite loop #134

@marcbachmann

Description

@marcbachmann

I just ran into a weird issue where Deps.prototype.lookupPackage was called in an infinite loop.
I generated some json files programmatically and one of them was named package.json.

How to reproduce it:

echo '"somefile"' > file.json
echo '"anotherfile"' > package.json
browserify file.json

The file was requireable in node but not in browserify, so the lookup logic probably needs a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions