Skip to content

Commit 6d01ba6

Browse files
committed
JS: Check isPrivateLike in isExported instead
1 parent 8a2485a commit 6d01ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/lib/semmle/javascript/endpoints/EndpointNaming.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ private predicate isExported(API::Node node) {
4949
or
5050
exists(API::Node pred |
5151
isExported(pred) and
52-
memberEdge(pred, node)
52+
memberEdge(pred, node) and
53+
not isPrivateLike(node)
5354
)
5455
}
5556

@@ -82,7 +83,6 @@ private API::Node getASuccessor(API::Node node, string name, int badness) {
8283
isExported(node) and
8384
exists(string member |
8485
result = node.getMember(member) and
85-
not isPrivateLike(node) and
8686
if member = "default"
8787
then
8888
if defaultExportCanBeInterpretedAsNamespaceExport(node)

0 commit comments

Comments
 (0)