summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/components/reps
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /devtools/client/shared/components/reps
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/shared/components/reps')
-rw-r--r--devtools/client/shared/components/reps/reps/element-node.js2
-rw-r--r--devtools/client/shared/components/reps/reps/error.js2
-rw-r--r--devtools/client/shared/components/reps/reps/function.js2
-rw-r--r--devtools/client/shared/components/reps/reps/grip-map.js2
-rw-r--r--devtools/client/shared/components/reps/reps/grip.js2
-rw-r--r--devtools/client/shared/components/reps/reps/text-node.js4
6 files changed, 7 insertions, 7 deletions
diff --git a/devtools/client/shared/components/reps/reps/element-node.js b/devtools/client/shared/components/reps/reps/element-node.js
index a31fb4225b..af38cc0f6f 100644
--- a/devtools/client/shared/components/reps/reps/element-node.js
+++ b/devtools/client/shared/components/reps/reps/element-node.js
@@ -180,7 +180,7 @@ define(function (require, exports, module) {
attributeKeys.splice(attributeKeys.indexOf("id"), 1);
attributeKeys.unshift("id");
}
- const attributeElements = attributeKeys.reduce((arr, name, i, keys) => {
+ const attributeElements = attributeKeys.reduce((arr, name) => {
const value = attributes[name];
let title = isLongString(value) ? value.initial : value;
diff --git a/devtools/client/shared/components/reps/reps/error.js b/devtools/client/shared/components/reps/reps/error.js
index 617bf8c8a2..688d10ba89 100644
--- a/devtools/client/shared/components/reps/reps/error.js
+++ b/devtools/client/shared/components/reps/reps/error.js
@@ -161,7 +161,7 @@ define(function (require, exports, module) {
return stack;
}
- parseStackString(preview.stack).forEach((frame, index, frames) => {
+ parseStackString(preview.stack).forEach((frame, index) => {
let onLocationClick;
const { filename, lineNumber, columnNumber, functionName, location } =
frame;
diff --git a/devtools/client/shared/components/reps/reps/function.js b/devtools/client/shared/components/reps/reps/function.js
index 54d8905c20..93d77b1392 100644
--- a/devtools/client/shared/components/reps/reps/function.js
+++ b/devtools/client/shared/components/reps/reps/function.js
@@ -118,7 +118,7 @@ define(function (require, exports, module) {
return returnSpan;
}
- function getClassTitle(grip) {
+ function getClassTitle() {
return span(
{
className: "objectTitle",
diff --git a/devtools/client/shared/components/reps/reps/grip-map.js b/devtools/client/shared/components/reps/reps/grip-map.js
index dcb7c50972..918e37ac8c 100644
--- a/devtools/client/shared/components/reps/reps/grip-map.js
+++ b/devtools/client/shared/components/reps/reps/grip-map.js
@@ -168,7 +168,7 @@ define(function (require, exports, module) {
return a - b;
});
- return indexes.map((index, i) => {
+ return indexes.map(index => {
const [key, entryValue] = entries[index];
const value =
entryValue.value !== undefined ? entryValue.value : entryValue;
diff --git a/devtools/client/shared/components/reps/reps/grip.js b/devtools/client/shared/components/reps/reps/grip.js
index 68f356858a..606ecfab8d 100644
--- a/devtools/client/shared/components/reps/reps/grip.js
+++ b/devtools/client/shared/components/reps/reps/grip.js
@@ -375,7 +375,7 @@ define(function (require, exports, module) {
}
// Registration
- function supportsObject(object, noGrip = false) {
+ function supportsObject(object) {
if (object?.class === "DeadObject") {
return true;
}
diff --git a/devtools/client/shared/components/reps/reps/text-node.js b/devtools/client/shared/components/reps/reps/text-node.js
index ae9a7bb109..474e647a9d 100644
--- a/devtools/client/shared/components/reps/reps/text-node.js
+++ b/devtools/client/shared/components/reps/reps/text-node.js
@@ -123,13 +123,13 @@ define(function (require, exports, module) {
});
}
- function getTitle(grip) {
+ function getTitle() {
const title = "#text";
return span({}, title);
}
// Registration
- function supportsObject(grip, noGrip = false) {
+ function supportsObject(grip) {
return grip?.preview && grip?.class == "Text";
}