Skip to content

Commit aa90716

Browse files
committed
Added nullish arguments as source type
1 parent 9ecf357 commit aa90716

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tstool/dfbscan_extractor/Javascript/Javascript_NPD_extractor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def extract_sources(self, function: Function) -> List[Value]:
5959
1. variable = null;
6060
2. return null;
6161
3. delete obj.prop;
62+
4. func(null);
6263
"""
6364

6465
root_node = function.parse_tree_root_node
@@ -68,6 +69,7 @@ def extract_sources(self, function: Function) -> List[Value]:
6869
nodes = find_nodes_by_type(root_node, "variable_declarator")
6970
nodes.extend(find_nodes_by_type(root_node, "assignment_expression"))
7071
nodes.extend(find_nodes_by_type(root_node, "return_statement"))
72+
nodes.extend(find_nodes_by_type(root_node, "arguments"))
7173

7274
sources = []
7375

0 commit comments

Comments
 (0)