Skip to content

Commit e3f1720

Browse files
committed
RenamedDecodeLike to Decode and updated propagatesFlow
1 parent 0c52b5a commit e3f1720

File tree

1 file changed

+4
-4
lines changed
  • javascript/ql/lib/semmle/javascript/internal/flow_summaries

1 file changed

+4
-4
lines changed

javascript/ql/lib/semmle/javascript/internal/flow_summaries/Decoders.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ private class TextDecoderEntryPoint extends API::EntryPoint {
1313
pragma[nomagic]
1414
API::Node textDecoderConstructorRef() { result = any(TextDecoderEntryPoint e).getANode() }
1515

16-
class DecodeLike extends SummarizedCallable {
17-
DecodeLike() { this = "TextDecoder#decode" }
16+
class Decode extends SummarizedCallable {
17+
Decode() { this = "TextDecoder#decode" }
1818

1919
override InstanceCall getACall() {
2020
result = textDecoderConstructorRef().getInstance().getMember("decode").getACall()
2121
}
2222

2323
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
24-
preservesValue = true and
25-
input = "Argument[0]" and
24+
preservesValue = false and
25+
input = "Argument[0].ArrayElement" and
2626
output = "ReturnValue"
2727
}
2828
}

0 commit comments

Comments
 (0)