DEP0153: dns.lookup 和 dnsPromises.lookup 选项类型强制转换
类型: 生命结束
为 family
选项使用非空非整数值,为 hints
选项使用非空非数字值,为 all
选项使用非空非布尔值,或为 verbatim
选项使用非空非布尔值,在 dns.lookup()
和 dnsPromises.lookup()
中抛出 ERR_INVALID_ARG_TYPE
错误。
Type: End-of-Life
Using a non-nullish non-integer value for family
option, a non-nullish
non-number value for hints
option, a non-nullish non-boolean value for all
option, or a non-nullish non-boolean value for verbatim
option in
dns.lookup()
and dnsPromises.lookup()
throws an
ERR_INVALID_ARG_TYPE
error.