mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1010568: Remove usage of 2nd WeakMap#get parameter from TelemetryStopwatch; r=felipe
--HG-- extra : amend_source : a825f25e18b52f46a2ddd50383aa2783f431d7df
This commit is contained in:
parent
52640a26cf
commit
4ff1a98038
@ -41,7 +41,7 @@ this.TelemetryStopwatch = {
|
||||
|
||||
let timers;
|
||||
if (aObj) {
|
||||
timers = objectTimers.get(aObj, {});
|
||||
timers = objectTimers.get(aObj) || {};
|
||||
objectTimers.set(aObj, timers);
|
||||
} else {
|
||||
timers = simpleTimers;
|
||||
@ -79,7 +79,7 @@ this.TelemetryStopwatch = {
|
||||
return false;
|
||||
|
||||
let timers = aObj
|
||||
? objectTimers.get(aObj, {})
|
||||
? objectTimers.get(aObj) || {}
|
||||
: simpleTimers;
|
||||
|
||||
if (timers.hasOwnProperty(aHistogram)) {
|
||||
@ -110,7 +110,7 @@ this.TelemetryStopwatch = {
|
||||
return false;
|
||||
|
||||
let timers = aObj
|
||||
? objectTimers.get(aObj, {})
|
||||
? objectTimers.get(aObj) || {}
|
||||
: simpleTimers;
|
||||
|
||||
let start = timers[aHistogram];
|
||||
|
Loading…
Reference in New Issue
Block a user