517d6eea28
* Get jsdoc host from chained assignment getSourceOfAssignment previously only checked one level of binary expression instead of following binary expressions all the way to the right. This meant that binding of `@constructor` would fail in the following example: ```js /** @constructor */ a = b = function () { } ``` * cleanup lint * use existing utility
8 lines
176 B
TypeScript
8 lines
176 B
TypeScript
// @allowjs: true
|
|
// @noemit: true
|
|
// @Filename: constructorTagOnNestedBinaryExpression.js
|
|
// Fixes #35021
|
|
/** @constructor */
|
|
a = b = function c () {
|
|
console.log(this)
|
|
};
|