Make also dap respect 'no-useless-assignment'

Forgotten in #8163 due to rebase.
This commit is contained in:
phosit
2025-08-01 15:57:27 +02:00
parent 582541ea80
commit 07309450fc
@@ -336,7 +336,7 @@ class InspectorManager extends Plugin {
for (const varName of varReference.values)
{
this.logger.debug(`Expanding variable: ${varName}`);
let value = null;
let value;
if (varReference.jsObject)
value = varReference.jsObject.getOwnPropertyDescriptor(varName)?.value;
else if (varName === 'this' && frame.this instanceof Debugger.Object)