Commit 99208cda authored by Camillo Bruni's avatar Camillo Bruni Committed by V8 LUCI CQ

[tools] Fix loading old RCS.json files in callstats.html

Change-Id: Ica7e51e8d3e2d41edb0ad98b77e5213fb5f6515a
No-Try: True
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3763864Reviewed-by: 's avatarPatrick Thier <pthier@chromium.org>
Commit-Queue: Patrick Thier <pthier@chromium.org>
Auto-Submit: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81747}
parent f3737bbb
......@@ -1560,7 +1560,7 @@ code is governed by a BSD-style license that can be found in the LICENSE file.
// { PAGE: [[metric_name, ...], [...], ]}
// Also, make sure we don't have the versioned array-style:
// { VERSION: { PAGE: [[metric_name, ...], [...], ]}, ...}
const innerArray = firstProperty(maybeMetrics);
const innerArray = firstProperty(maybeMetric);
if (Array.isArray(maybeMetric) && !Array.isArray(innerArray)) {
return {
[getFileName()]: json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment