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

Unified Diff: tracing/tracing/extras/importer/v8/v8_log_importer.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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
Index: tracing/tracing/extras/importer/v8/v8_log_importer.html
diff --git a/tracing/tracing/extras/importer/v8/v8_log_importer.html b/tracing/tracing/extras/importer/v8/v8_log_importer.html
index 5569a5246425ce2028702ac3f0a6603b51524328..cc462a55d325def3207a6a8aa0a439da19fe055b 100644
--- a/tracing/tracing/extras/importer/v8/v8_log_importer.html
+++ b/tracing/tracing/extras/importer/v8/v8_log_importer.html
@@ -77,8 +77,9 @@ tr.exportTo('tr.e.importer.v8', function() {
* @return {boolean} Whether obj is a V8 log string.
*/
V8LogImporter.canImport = function(eventData) {
- if (typeof(eventData) !== 'string' && !(eventData instanceof String))
+ if (typeof(eventData) !== 'string' && !(eventData instanceof String)) {
return false;
+ }
return eventData.substring(0, 11) === 'v8-version,' ||
eventData.substring(0, 12) === 'timer-event,' ||
@@ -204,8 +205,9 @@ tr.exportTo('tr.e.importer.v8', function() {
function findChildWithEntryID(stackFrame, entryID) {
for (var i = 0; i < stackFrame.children.length; i++) {
- if (stackFrame.children[i].entryID === entryID)
+ if (stackFrame.children[i].entryID === entryID) {
return stackFrame.children[i];
+ }
}
return undefined;
}
@@ -240,8 +242,11 @@ tr.exportTo('tr.e.importer.v8', function() {
// Find out, if top of stack was pointing inside a JS function
// meaning that we have encountered a frameless invocation.
var funcEntry = this.code_map_.findEntry(tosOrExternalCallback);
- if (!funcEntry || !funcEntry.isJSFunction || !funcEntry.isJSFunction())
+ if (!funcEntry ||
+ !funcEntry.isJSFunction ||
+ !funcEntry.isJSFunction()) {
tosOrExternalCallback = 0;
+ }
}
var processedStack = processStack(pc, tosOrExternalCallback, stack);
@@ -251,8 +256,7 @@ tr.exportTo('tr.e.importer.v8', function() {
processedStack = processedStack.reverse();
for (var i = 0, n = processedStack.length; i < n; i++) {
var frame = processedStack[i];
- if (!frame)
- break;
+ if (!frame) break;
var entry = this.code_map_.findEntry(frame);
if (!entry && i !== 0) {
« no previous file with comments | « tracing/tracing/extras/importer/v8/splaytree.html ('k') | tracing/tracing/extras/importer/zip_importer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698