ERR_AMBIGUOUS_ARGUMENT
函数参数的使用方式表明函数签名可能会被误解。当 assert.throws(block, message) 中的 message 参数与 block 抛出的错误消息匹配时,则由 node:assert 模块抛出错误,因为这种用法表明用户认为 message 是预期的消息,而不是 block 不抛出时 AssertionError 将显示的消息。
¥A function argument is being used in a way that suggests that the function
signature may be misunderstood. This is thrown by the node:assert module when
the message parameter in assert.throws(block, message) matches the error
message thrown by block because that usage suggests that the user believes
message is the expected message rather than the message the AssertionError
will display if block does not throw.