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 fedf8fc commit 5fb44e9Copy full SHA for 5fb44e9
javascript/ql/lib/semmle/javascript/GlobalAccessPaths.qll
@@ -275,11 +275,11 @@ module AccessPath {
275
*
276
* This allows `fromRhs` to compute an access path for e.g. the below example:
277
* ```JavaScript
278
- * function Template(text, opts) {
279
- * opts = opts || {};
280
- * var options = {};
281
- * options.varName = taint;
282
- * this.opts = options; // this.opts.varName is now available
+ * function foo(x) {
+ * var obj = {
+ * bar: x // `x` has the access path "foo.bar" starting from the root `this`.
+ * };
+ * this.foo = obj;
283
* }
284
* ```
285
*/
0 commit comments