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 bf5776f commit ca7da75Copy full SHA for ca7da75
crates/static-analysis-kernel/src/analysis/ddsa_lib/js/ddsa.js
@@ -49,7 +49,7 @@ export class DDSA {
49
* @returns {TreeSitterNode | TreeSitterFieldChildNode | undefined}
50
*/
51
findAncestor(node, predicate) {
52
- if (!node) {
+ if (node === undefined) {
53
return undefined;
54
}
55
let n = ddsa.getParent(node);
@@ -70,7 +70,7 @@ export class DDSA {
70
71
72
findDescendant(node, predicate) {
73
- if (!predicate) {
+ if (predicate === undefined) {
74
75
76
0 commit comments