Skip to content

Commit c2a10a3

Browse files
committed
JS: Elaborate on comment about window
1 parent 2052ba6 commit c2a10a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/codeql/codeql-language-guides/customizing-library-models-for-javascript.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ This source is already known by the CodeQL JS analysis, but we'll show how it co
9595
To break this down:
9696

9797
- Since we're adding a new taint source, we add a tuple to the **sourceModel** extension point.
98-
- The first column, **"global"**, begins the search at references to the global object (also known as **window**). This is a special JavaScript object that contains all global variables and methods.
98+
- The first column, **"global"**, begins the search at references to the global object (also known as **window** in browser contexts). This is a special JavaScript object that contains all global variables and methods.
9999
- **Member[addEventListener]** selects accesses to the **addEventListener** member.
100100
- **Argument[1]** selects the second argument of calls to that member (the argument containing the callback).
101101
- **Parameter[0]** selects the first parameter of the callback (the parameter named **event**).

0 commit comments

Comments
 (0)