We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5811a3c commit b0ea812Copy full SHA for b0ea812
javascript/ql/lib/semmle/javascript/dataflow/internal/FlowSummaryPrivate.qll
@@ -380,7 +380,14 @@ module Steps = Private::Steps<FlowSummaryStepInput>;
380
* `arg` will be printed in square brackets (`[]`) after the result, unless
381
* `arg` is the empty string.
382
*/
383
-string encodeReturn(ReturnKind rk, string arg) { none() }
+string encodeReturn(ReturnKind rk, string arg) {
384
+ result = "ReturnValue" and
385
+ (
386
+ rk = MkNormalReturnKind() and arg = ""
387
+ or
388
+ rk = MkExceptionalReturnKind() and arg = "exception"
389
+ )
390
+}
391
392
/**
393
* Gets the textual representation of without-content `c` used in MaD.
0 commit comments