DEP0065:repl.REPL_MODE_MAGIC 和 NODE_REPL_MODE=magic
【DEP0065: repl.REPL_MODE_MAGIC and NODE_REPL_MODE=magic】
类型:寿命终止
【Type: End-of-Life】
node:repl 模块的 REPL_MODE_MAGIC 常量(用于 replMode 选项)已被移除。自 Node.js 6.0.0 引入 V8 5.0 以来,其行为与 REPL_MODE_SLOPPY 功能上相同。请改用 REPL_MODE_SLOPPY。
【The node:repl module's REPL_MODE_MAGIC constant, used for replMode option,
has been removed. Its behavior has been functionally identical to that of
REPL_MODE_SLOPPY since Node.js 6.0.0, when V8 5.0 was imported. Please use
REPL_MODE_SLOPPY instead.】
NODE_REPL_MODE 环境变量用于设置交互式 node 会话的底层 replMode。其值 magic 也已被移除。请改用 sloppy。
【The NODE_REPL_MODE environment variable is used to set the underlying
replMode of an interactive node session. Its value, magic, is also
removed. Please use sloppy instead.】