Issue #2690 - Throw a NotSupportedError in case of unknown algorithm name.

Syntax error is incorrect for this case.
This commit is contained in:
Moonchild 2025-02-05 22:14:02 +01:00 committed by roytam1
commit 263bf279a7

View file

@ -152,7 +152,7 @@ GetAlgorithmName(JSContext* aCx, const OOS& aAlgorithm, nsString& aName)
}
if (!NormalizeToken(aName, aName)) {
return NS_ERROR_DOM_SYNTAX_ERR;
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
}
return NS_OK;