Skip to content

Commit 6c0c67d

Browse files
committed
Implement encodeWith/WithoutContent
1 parent b0ea812 commit 6c0c67d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/lib/semmle/javascript/dataflow/internal/FlowSummaryPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,15 @@ string encodeReturn(ReturnKind rk, string arg) {
395395
* `arg` will be printed in square brackets (`[]`) after the result, unless
396396
* `arg` is the empty string.
397397
*/
398-
string encodeWithoutContent(ContentSet c, string arg) { none() }
398+
string encodeWithoutContent(ContentSet c, string arg) { result = "Without" + encodeContent(c, arg) }
399399

400400
/**
401401
* Gets the textual representation of with-content `c` used in MaD.
402402
*
403403
* `arg` will be printed in square brackets (`[]`) after the result, unless
404404
* `arg` is the empty string.
405405
*/
406-
string encodeWithContent(ContentSet c, string arg) { none() }
406+
string encodeWithContent(ContentSet c, string arg) { result = "With" + encodeContent(c, arg) }
407407

408408
/**
409409
* Gets a parameter position corresponding to the unknown token `token`.

0 commit comments

Comments
 (0)