DEP0185:在没有使用 new 的情况下实例化 node:repl 类
🌐 DEP0185: Instantiating node:repl classes without new
类型:运行时
🌐 Type: Runtime
在没有使用 new 修饰符的情况下实例化由 node:repl 模块导出的类已被弃用。建议改为使用 new 修饰符。这适用于所有 REPL 类,包括 REPLServer 和 Recoverable。
🌐 Instantiating classes without the new qualifier exported by the node:repl module is deprecated.
It is recommended to use the new qualifier instead. This applies to all REPL classes, including
REPLServer and Recoverable.