Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Unified Diff: tracing/tracing/model/time_to_object_instance_map.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: more changes from code review Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/model/thread_test.html ('k') | tracing/tracing/mre/job.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/time_to_object_instance_map.html
diff --git a/tracing/tracing/model/time_to_object_instance_map.html b/tracing/tracing/model/time_to_object_instance_map.html
index bd30fc102bc73f9b833392502762e7f809d3a41c..5b54daa102816d8517b81cd4c289650ad4ed9667 100644
--- a/tracing/tracing/model/time_to_object_instance_map.html
+++ b/tracing/tracing/model/time_to_object_instance_map.html
@@ -34,7 +34,7 @@ tr.exportTo('tr.model', function() {
TimeToObjectInstanceMap.prototype = {
idWasCreated: function(category, name, ts) {
- if (this.instances.length == 0) {
+ if (this.instances.length === 0) {
this.instances.push(this.createObjectInstanceFunction_(
this.parent, this.scopedId, category, name, ts));
this.instances[0].creationTsWasExplicit = true;
@@ -54,7 +54,7 @@ tr.exportTo('tr.model', function() {
},
addSnapshot: function(category, name, ts, args, opt_baseTypeName) {
- if (this.instances.length == 0) {
+ if (this.instances.length === 0) {
this.instances.push(this.createObjectInstanceFunction_(
this.parent, this.scopedId, category, name, ts, opt_baseTypeName));
}
@@ -74,7 +74,7 @@ tr.exportTo('tr.model', function() {
'At the provided timestamp, no instance was still alive');
}
- if (instance.snapshots.length != 0) {
+ if (instance.snapshots.length !== 0) {
throw new Error(
'Cannot shift creationTs forward, ' +
'snapshots have been added. First snap was at ts=' +
@@ -104,7 +104,8 @@ tr.exportTo('tr.model', function() {
var tmp = this.instances[i];
if (ts >= tmp.deletionTs)
break;
- if (tmp.creationTsWasExplicit == false && tmp.snapshots.length == 0)
+ if (tmp.creationTsWasExplicit === false &&
+ tmp.snapshots.length === 0)
lastValidIndex = i;
}
if (lastValidIndex === undefined) {
@@ -122,20 +123,20 @@ tr.exportTo('tr.model', function() {
},
get lastInstance() {
- if (this.instances.length == 0)
+ if (this.instances.length === 0)
return undefined;
return this.instances[this.instances.length - 1];
},
idWasDeleted: function(category, name, ts) {
- if (this.instances.length == 0) {
+ if (this.instances.length === 0) {
this.instances.push(this.createObjectInstanceFunction_(
this.parent, this.scopedId, category, name, ts));
}
var lastInstance = this.instances[this.instances.length - 1];
if (ts < lastInstance.creationTs)
throw new Error('Cannot delete an id before it was created');
- if (lastInstance.deletionTs == Number.MAX_VALUE) {
+ if (lastInstance.deletionTs === Number.MAX_VALUE) {
lastInstance.wasDeleted(ts);
return lastInstance;
}
« no previous file with comments | « tracing/tracing/model/thread_test.html ('k') | tracing/tracing/mre/job.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698