Skip to content

Commit

Permalink
Add some missing RTCStatsReport methods/properties in externs per spec.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=239072053
  • Loading branch information
saeedj authored and tjgq committed Mar 19, 2019
1 parent 86c2d25 commit fbedb5f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions externs/browser/w3c_rtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,13 @@ RTCStatsReport.prototype.id;
*/
RTCStatsReport.prototype.forEach = function(callback, opt_thisObj) {};

/**
* @param {string} key
* @return {!IteratorIterable<!Array<string|!RTCStats>>}
* @readonly
*/
RTCStatsReport.prototype.entries = function(key) {};

/**
* @param {string} key
* @return {!RTCStats}
Expand All @@ -1785,6 +1792,30 @@ RTCStatsReport.prototype.get = function(key) {};
*/
RTCStatsReport.prototype.keys = function() {};

/**
* @return {!IteratorIterable<!RTCStats>}
* @readonly
*/
RTCStatsReport.prototype.values = function() {};

/**
* @param {string} key
* @return {boolean}
* @readonly
*/
RTCStatsReport.prototype.has = function(key) {};

/**
* @readonly {number}
*/
RTCStatsReport.prototype.size;

/**
* @return {!Iterator<!Array<string|!RTCStats>>}
*/
RTCStatsReport.prototype[Symbol.iterator] = function() {};


/**
* TODO(bemasc): Remove this type once it is no longer in use. It has already
* been removed from the specification.
Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit fbedb5f

Please sign in to comment.