エラーコードポータル
Node.jsNode.jsエラーコード

ERR_AMBIGUOUS_ARGUMENT

ambiguous argument

コード ERR_AMBIGUOUS_ARGUMENT · Node.jsが報告した問題です。

関数の引数が、関数のシグネチャが誤解されている可能性を示唆する方法で使用されています。これは、assert.throws(block, message) の message パラメーターが block によってスローされたエラー メッセージと一致する場合に、node:assert モジュールによってスローされます。これは、この使用法は、ブロックがスローしない場合に AssertionError が表示するメッセージではなく、message が予期されるメッセージであるとユーザーが信じていることを示唆しているためです。

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

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.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。