Skip to content

Commit b841cac

Browse files
authored
Merge pull request github#3676 from max-schaefer/js/global-access-paths-minor-fixes
Approved by erik-krogh
2 parents cd914de + 0f2186c commit b841cac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

javascript/ql/src/semmle/javascript/GlobalAccessPaths.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ deprecated module GlobalAccessPath {
3333
/**
3434
* Provides predicates for associating access paths with data flow nodes.
3535
*
36-
* For example, `AccessPath.getAReferenceTo(x)` can be used to obtain the global access path
36+
* For example, `AccessPath::getAReferenceTo(x)` can be used to obtain the global access path
3737
* that `x` refers to, as in the following sample:
3838
* ```
3939
* function f() {
@@ -240,7 +240,7 @@ module AccessPath {
240240
* ```
241241
* function f(x) {
242242
* x.foo.bar = class {};
243-
* x.foo = { bar: class() };
243+
* x.foo = { bar: class {} };
244244
* let alias = x;
245245
* alias.foo.bar = class {};
246246
* }
@@ -338,7 +338,7 @@ module AccessPath {
338338
* ```
339339
* function f(x) {
340340
* x.foo.bar = class {};
341-
* x.foo = { bar: class() };
341+
* x.foo = { bar: class {} };
342342
* let alias = x;
343343
* alias.foo.bar = class {};
344344
* }
@@ -355,7 +355,7 @@ module AccessPath {
355355
* Only gets the immediate right-hand side of an assignment or property or a global declaration,
356356
* not nodes that transitively flow there.
357357
*
358-
* For example, the class nodes below are all assignmetns to `foo.bar`:
358+
* For example, the class nodes below are all assignments to `foo.bar`:
359359
* ```
360360
* foo.bar = class {};
361361
* foo = { bar: class {} };

0 commit comments

Comments
 (0)