Skip to content

internal/repl is exposed without --expose-internals flag #3393

Closed
@Trott

Description

@Trott
Member

Every other module in lib/internal is not available via require() without the --expose-internals flag but internal/repl is.

Activity

added
replIssues and PRs related to the REPL subsystem.
on Oct 16, 2015
self-assigned this
on Oct 16, 2015
targos

targos commented on Oct 16, 2015

@targos
Member

Ref: 0450ce7

node/lib/module.js

Lines 276 to 277 in 9148114

// REPL is a special case, because it needs the real require.
if (request === 'internal/repl' || request === 'repl') {

Fishrock123

Fishrock123 commented on Oct 19, 2015

@Fishrock123
Contributor

cc @chrisdickinson Are you able to give some context here?

evanlucas

evanlucas commented on Dec 10, 2015

@evanlucas
Contributor

This was fixed in ee72ee7.

Just tested on v5.2.0 and confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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

      Participants

      @evanlucas@Trott@Fishrock123@targos@vkurchatkin

      Issue actions

        `internal/repl` is exposed without --expose-internals flag · Issue #3393 · nodejs/node