| Index: third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/this.js
|
| diff --git a/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/this.js b/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/this.js
|
| index b769a2858c3a8f6eb438ef75fc07f9b5ab85afec..2aafe13b1720785b5bfbae459117677396714ceb 100644
|
| --- a/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/this.js
|
| +++ b/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/this.js
|
| @@ -282,3 +282,46 @@ ReceiverTest.prototype = {
|
|
|
| memberTwo: function(arg) {}
|
| }
|
| +
|
| +/**
|
| + * @constructor
|
| + */
|
| +function ReceiverWithArrowsTest()
|
| +{
|
| + this._q = [];
|
| +}
|
| +
|
| +ReceiverWithArrowsTest.prototype = {
|
| + /**
|
| + * @param {string} s
|
| + */
|
| + memberOne: function(s)
|
| + {
|
| + /**
|
| + * @param {string} a
|
| + * @this {C}
|
| + */
|
| + function testArrowFunctionReferencingThis(a)
|
| + {
|
| + (x => this._q.push(x))(a);
|
| + }
|
| +
|
| + /**
|
| + * @param {string} a
|
| + * @this {C}
|
| + */
|
| + function testNestedArrowFunctionReferencingThis(a)
|
| + {
|
| + (x => (y => this._q.push(y))(x))(a);
|
| + }
|
| +
|
| + /**
|
| + * @param {string} a
|
| + */
|
| + function testArrowFunctionReferencingThisMissingAnnotation(a)
|
| + {
|
| + (x => this._q.push(x))(a);
|
| + }
|
| +
|
| + }
|
| +};
|
|
|