Skip to content

If NODE_REPL_HISTORY file cannot be opened, Node crashes #3610

Closed
@bminer

Description

@bminer

If the NODE_REPL_HISTORY file cannot be opened (i.e. read-only file system, permission issue, etc.), Node simply crashes. This is probably an uncaught "error" event.

This behavior seems silly to me. The NODE_REPL_HISTORY file is a convenience, not a requirement. Even though it can be disabled by an environment flag, if it cannot be opened, it should silently fail. Or, perhaps, NODE_REPL_HISTORY should be disabled by default?

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions