Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f72cd21

Browse files
committed
JS: Some more test changes in SpuriousArguments
1 parent d3de6d1 commit f72cd21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • javascript/ql/test/query-tests/LanguageFeatures/SpuriousArguments

javascript/ql/test/query-tests/LanguageFeatures/SpuriousArguments/tst.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ new String(1, 2, 3); // $ Alert
4040
h(function(x) { return x; });
4141
})(function() {});
4242

43-
parseFloat("123", 10);
43+
parseFloat("123", 10); // $ Alert - unlike parseInt this does not take a radix
4444

4545
(function testWhitelistEmptyFunctions(){
4646
function nonEmpty(){
@@ -115,7 +115,7 @@ parseFloat("123", 10);
115115
throwerArrow(42);
116116
throwerCustom(42);
117117
throwerWithParam(42, 87); // $ Alert
118-
throwerIndirect(42); // OK - but still flagged due to complexity
118+
throwerIndirect(42); // $ SPURIOUS: Alert - flagged due to complexity
119119
});
120120

121121
function sum2() {

0 commit comments

Comments
 (0)