minor documentation fixes

Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
Erik Krogh Kristensen
2019-12-17 13:05:20 +01:00
committed by GitHub
parent 8f17db6670
commit f9ddd5891a
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ private class PromiseFlowStep extends DataFlow::AdditionalFlowStep {
/**
* A data flow edge from the exceptional return of the promise executor to the promise catch handler.
* This only adds an edge from the exceptional return of the promise Executor and to a `.catch()` handler.
* This only adds an edge from the exceptional return of the promise executor to a `.catch()` handler.
* Missing are (at least):
* Exceptional flow from promise executor (and handlers) to exceptional return of an `await` expression.
* Flow from calls to `reject` to exceptional return of an `await` expression.

View File

@@ -87,7 +87,7 @@ module ExceptionXss {
/**
* Gets the error parameter for a callback that is supplied to the same call as `pred` is an argument to.
* E.g: `outerCall(foo, <pred>, bar, (<result>, val) => { ... })`.
* For example: `outerCall(foo, <pred>, bar, (<result>, val) => { ... })`.
*/
DataFlow::Node getCallbackErrorParam(DataFlow::Node pred) {
exists(DataFlow::CallNode call, Callback callback |