Skip to content

Commit ca68b19

Browse files
committed
Brought back FunctionStyleClass marked as deprecated
1 parent 9bab593 commit ca68b19

File tree

1 file changed

+5
-0
lines changed
  • javascript/ql/lib/semmle/javascript/dataflow

1 file changed

+5
-0
lines changed

javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll

+5
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,11 @@ module ClassNode {
12361236
func instanceof AbstractCallable // the join-order goes bad if `func` has type `AbstractFunction`.
12371237
}
12381238

1239+
/**
1240+
* A function definition, targeted by a `new`-call or with prototype manipulation, seen as a `ClassNode` instance.
1241+
*/
1242+
deprecated class FunctionStyleClass = StandardClassNode;
1243+
12391244
/**
12401245
* A function definition, targeted by a `new`-call or with prototype manipulation, seen as a `ClassNode` instance.
12411246
* Or An ES6 class as a `ClassNode` instance.

0 commit comments

Comments
 (0)