Skip to content

repl: don't rely on require.extensions #58641

Open
@marco-ippolito

Description

@marco-ippolito

Version

v25.0.0-pre

Platform

Darwin marcos-MacBook-Pro-3.local 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:33:47 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T6030 arm64

Subsystem

No response

What steps will reproduce the bug?

Require.extensions is deprecated we should not use it internally

node/lib/repl.js

Line 1363 in 987aa0a

const extensions = ObjectKeys(this.context.require.extensions);

How often does it reproduce? Is there a required condition?

~

What is the expected behavior? Why is that the expected behavior?

~

What do you see instead?

~

Additional information

@nodejs/loaders @nodejs/repl

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecationsIssues and PRs related to deprecations.good first issueIssues that are suitable for first-time contributors.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