Skip to content

Commit e459884

Browse files
committed
JS: Update API usage in ViewComponentInput
1 parent fb92d9b commit e459884

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

javascript/ql/lib/semmle/javascript/ViewComponentInput.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
private import javascript
6-
private import semmle.javascript.internal.TypeResolution
76

87
/**
98
* An input to a view component, such as React props.
@@ -16,7 +15,7 @@ abstract class ViewComponentInput extends DataFlow::Node {
1615
private class ViewComponentInputAsThreatModelSource extends ThreatModelSource::Range instanceof ViewComponentInput
1716
{
1817
ViewComponentInputAsThreatModelSource() {
19-
not TypeResolution::valueHasSanitizingPrimitiveType(this.asExpr())
18+
not this.asExpr().getTypeBinding().isSanitizingPrimitiveType()
2019
}
2120

2221
final override string getThreatModel() { result = "view-component-input" }

0 commit comments

Comments
 (0)