We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f2ef9 commit 684fefbCopy full SHA for 684fefb
javascript/ql/test/query-tests/Statements/UseOfReturnlessFunction/tst.js
@@ -21,7 +21,7 @@
21
22
var a = Math.random() > 0.5 ? returnsValue() : onlySideEffects(); // OK - A is never used.
23
24
- var b = onlySideEffects();
+ var b = onlySideEffects(); // $ Alert
25
console.log(b);
26
27
var c = 42 + (onlySideEffects(), 42); // OK - value is thrown away.
@@ -42,7 +42,7 @@
42
onlySideEffects: onlySideEffects
43
}
44
45
- var e = myObj.onlySideEffects.apply(this, arguments); // $ Alert
+ var e = myObj.onlySideEffects.apply(this, arguments); // $ MISSING: Alert
46
console.log(e);
47
48
function onlySideEffects2() {
0 commit comments