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

Unified Diff: tracing/tracing/base/utils.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/base/unittest/text_test_results.html ('k') | tracing/tracing/base/xhr.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/utils.html
diff --git a/tracing/tracing/base/utils.html b/tracing/tracing/base/utils.html
index eddb023e7e37443e247e93fc81f4cbc316256e8c..2f71be02483540036cd083d9c6a19116d1956648 100644
--- a/tracing/tracing/base/utils.html
+++ b/tracing/tracing/base/utils.html
@@ -27,11 +27,11 @@ tr.exportTo('tr.b', function() {
if (!(value instanceof Object)) {
if (value === undefined || value === null)
return value;
- if (typeof value == 'string')
+ if (typeof value === 'string')
return value.substring();
- if (typeof value == 'boolean')
+ if (typeof value === 'boolean')
return value;
- if (typeof value == 'number')
+ if (typeof value === 'number')
return value;
throw new Error('Unrecognized: ' + typeof value);
}
@@ -44,7 +44,7 @@ tr.exportTo('tr.b', function() {
return res;
}
- if (object.__proto__ != Object.prototype)
+ if (object.__proto__ !== Object.prototype)
throw new Error('Can only clone simple types');
var res = {};
for (var key in object) {
@@ -62,7 +62,7 @@ tr.exportTo('tr.b', function() {
};
}
- if (typeof(e) == 'string') {
+ if (typeof(e) === 'string') {
return {
typeName: 'StringError',
message: e,
« no previous file with comments | « tracing/tracing/base/unittest/text_test_results.html ('k') | tracing/tracing/base/xhr.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698