File tree Expand file tree Collapse file tree 3 files changed +1
-28
lines changed
lib/semmle/javascript/dataflow
test/library-tests/RecursionPrevention Expand file tree Collapse file tree 3 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,7 @@ private import semmle.javascript.internal.CachedStages
3333 * import("fs")
3434 * ```
3535 */
36- class SourceNode extends DataFlow:: Node {
37- SourceNode ( ) {
38- this instanceof SourceNode:: Range
39- or
40- none ( ) and this instanceof SourceNode:: Internal:: RecursionGuard
41- }
42-
36+ class SourceNode extends DataFlow:: Node instanceof SourceNode:: Range {
4337 /**
4438 * Holds if this node flows into `sink` in zero or more local (that is,
4539 * intra-procedural) steps.
@@ -340,12 +334,6 @@ module SourceNode {
340334 DataFlow:: functionReturnNode ( this , _)
341335 }
342336 }
343-
344- /** INTERNAL. DO NOT USE. */
345- module Internal {
346- /** An empty class that some tests are using to enforce that SourceNode is non-recursive. */
347- abstract class RecursionGuard extends DataFlow:: Node { }
348- }
349337}
350338
351339private class NodeModuleSourcesNodes extends SourceNode:: Range {
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments