From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- devtools/client/storage/VariablesView.sys.mjs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'devtools/client/storage/VariablesView.sys.mjs') diff --git a/devtools/client/storage/VariablesView.sys.mjs b/devtools/client/storage/VariablesView.sys.mjs index 4cd03edb18..96fe4f8da4 100644 --- a/devtools/client/storage/VariablesView.sys.mjs +++ b/devtools/client/storage/VariablesView.sys.mjs @@ -2596,10 +2596,8 @@ Variable.prototype = extend(Scope.prototype, { * * @param string aName * The variable's name. - * @param object aDescriptor - * The variable's descriptor. */ - _init(aName, aDescriptor) { + _init(aName) { this._idString = generateId((this._nameString = aName)); this._displayScope({ value: aName, targetClassName: this.targetClassName }); this._displayVariable(); @@ -3699,12 +3697,12 @@ VariablesView.stringifiers.byType = { return null; }, - symbol(aGrip, aOptions) { + symbol(aGrip) { const name = aGrip.name || ""; return "Symbol(" + name + ")"; }, - mapEntry(aGrip, { concise }) { + mapEntry(aGrip) { const { preview: { key, value }, } = aGrip; @@ -4416,13 +4414,13 @@ function EditableNameAndValue(aVariable, aOptions) { EditableNameAndValue.create = Editable.create; EditableNameAndValue.prototype = extend(EditableName.prototype, { - _reset(e) { + _reset() { // Hide the Variable or Property if the user presses escape. this._variable.remove(); this.deactivate(); }, - _next(e) { + _next() { // Override _next so as to set both key and value at the same time. const key = this._input.value; this.label.setAttribute("value", key); -- cgit v1.2.3