mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
b6fb13c07e
The built-in externs for DOMStringList in Closure Compiler do not seem to list it as Iterable. This overrides them to fix it. This was caught by a compiler upgrade. Issue #2528 Change-Id: I5a404f2502fce8fc3e956f68f6a51728d68f0654
28 lines
603 B
JavaScript
28 lines
603 B
JavaScript
/** @license
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Externs for DOMStringList to override those provided by the
|
|
* Closure Compiler.
|
|
*
|
|
* TODO: contribute fixes to the Closure Compiler externs
|
|
*
|
|
* @externs
|
|
*/
|
|
|
|
|
|
/**
|
|
* This is an Iterable, but Closure's built-in extern doesn't seem to declare it
|
|
* as such in this version of the compiler (20200406).
|
|
*
|
|
* Here we override that definition.
|
|
*
|
|
* @implements {IArrayLike<string>}
|
|
* @implements {Iterable<string>}
|
|
* @constructor
|
|
* @suppress {duplicate}
|
|
*/
|
|
var DOMStringList = function() {};
|