Skip to content

Commit dabb9f9

Browse files
jDramaixtjgq
authored andcommitted
Make Array.prototype.copyWithin generic.
According to http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.copywithin Array.prorotype.copyWithin is a generic method. The extern definition is redefining the template T but is missing the @this annotation. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=244697432
1 parent 1f9eacf commit dabb9f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

externs/es6.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,7 @@ Array.prototype.fill = function(value, opt_begin, opt_end) {};
13591359
* @param {number} start
13601360
* @param {number=} opt_end
13611361
* @see http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.copywithin
1362+
* @this {!IArrayLike<T>|string}
13621363
* @template T
13631364
* @return {!Array<T>}
13641365
*/

src/com/google/javascript/jscomp/resources.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)