diff --git a/src/chrome/chromeDebugAdapter.ts b/src/chrome/chromeDebugAdapter.ts index 6c3fbe9b4..e5f40dfdf 100644 --- a/src/chrome/chromeDebugAdapter.ts +++ b/src/chrome/chromeDebugAdapter.ts @@ -1708,6 +1708,10 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { return this.handleScriptsCommand(args); } + if (args.expression.startsWith('{') && args.expression.endsWith('}')) { + args.expression = `(${args.expression})`; + } + const evalResponse = await this.waitThenDoEvaluate(args.expression, args.frameId, { generatePreview: true }); // Convert to a Variable object then just copy the relevant fields off