Skip to content

Commit

Permalink
Update WorkerGlobalScope API to have 'performance' attribute, and add
Browse files Browse the repository at this point in the history
nextHopProtocol to PerformanceResourceTimings.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=164597951
  • Loading branch information
clayw authored and blickly committed Aug 8, 2017
1 parent 6631bf9 commit 98f9f37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions externs/browser/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,9 @@ WorkerGlobalScope.prototype.onoffline;
*/
WorkerGlobalScope.prototype.ononline;

/** @type {!WorkerPerformance} */
WorkerGlobalScope.prototype.performance;

/**
* @see http://dev.w3.org/html5/workers/
* @interface
Expand Down
7 changes: 7 additions & 0 deletions externs/browser/w3c_navigation_timing.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ PerformanceResourceTiming.prototype.encodedBodySize;
PerformanceResourceTiming.prototype.decodedBodySize;
/** @type {number|undefined} */
PerformanceResourceTiming.prototype.workerStart;
/** @type {string} */ PerformanceResourceTiming.prototype.nextHopProtocol;

/**
* Possible values are 'navigate', 'reload', 'back_forward', and 'prerender'.
Expand Down Expand Up @@ -223,3 +224,9 @@ Window.prototype.performance;
* @suppress {duplicate}
*/
var performance;

/**
* @constructor
* @extends {Performance}
*/
function WorkerPerformance() {}
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit 98f9f37

Please sign in to comment.