JS: Some more test changes in SpuriousArguments

This commit is contained in:
Asger F
2025-02-11 16:38:52 +01:00
parent d3de6d18a4
commit f72cd21a55

View File

@@ -40,7 +40,7 @@ new String(1, 2, 3); // $ Alert
h(function(x) { return x; });
})(function() {});
parseFloat("123", 10);
parseFloat("123", 10); // $ Alert - unlike parseInt this does not take a radix
(function testWhitelistEmptyFunctions(){
function nonEmpty(){
@@ -115,7 +115,7 @@ parseFloat("123", 10);
throwerArrow(42);
throwerCustom(42);
throwerWithParam(42, 87); // $ Alert
throwerIndirect(42); // OK - but still flagged due to complexity
throwerIndirect(42); // $ SPURIOUS: Alert - flagged due to complexity
});
function sum2() {