From dcda4187bed8f249aed0157e3b016af136717ff7 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Fri, 16 May 2025 18:09:44 +0200 Subject: [PATCH] Fix parsing of graph.js for eslint The perl script extract.pl just checks for a line matching '-- include data json--', so making it valid js is can be done just fine. Also fix eslint warning is graph.js. Ref: #7812 Signed-off-by: Ralph Sennhauser --- source/tools/replayprofile/graph.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/tools/replayprofile/graph.js b/source/tools/replayprofile/graph.js index 2e4327a64f..c345a86e89 100644 --- a/source/tools/replayprofile/graph.js +++ b/source/tools/replayprofile/graph.js @@ -68,7 +68,7 @@ function showReplayData() } }); - $("#replayGraph").bind("plothover", function (event, pos, item) { + $("#replayGraph").bind("plothover", function(event, pos, item) { $("#tooltip").remove(); if (!item) return; @@ -104,7 +104,7 @@ function getReplayGraphData(displayedColumn) if (filteredColumns.indexOf(label) != -1 || (displayedColumn == "bytes") != graphFormat.bytes.isColumn(label) || (displayedColumn == "garbageCollection") != (graphFormat.garbageCollection.isColumn(label))) - continue + continue; var data = []; for (var j = 0; j < replayData[i].data.length; ++j) @@ -138,8 +138,8 @@ function showTooltip(x, y, displayedColumn, label, turn, value) function loadReplayGraphData() { -replayData = - + replayData = + ""; } $(loadReplayGraphData);