DEP0164:process.exit(code), process.exitCode 强制转换为整数
\DEP0164: process.exit(code), process.exitCode coercion to integer
版本历史
| 版本 | 变更 |
|---|---|
| v20.0.0 | 生命尽头。 |
| v19.0.0 | 运行时弃用。 |
| v18.10.0, v16.18.0 | 强制 |
| v18.7.0, v16.17.0 | 强制 |
类型:生命结束
\Type: End-of-Life
undefined、null、整数和整数字符串(例如,'1')以外的值作为 process.exit() 中 code 参数的值以及分配给 process.exitCode 的值已弃用。
\Values other than undefined, null, integer numbers, and integer strings
(e.g., '1') are deprecated as value for the code parameter in
process.exit() and as value to assign to process.exitCode.