Closed Bug 1933139 Opened 1 year ago Closed 1 year ago

inline preview doesn't work on scripts using explicit resource management (with the `using` keyword)

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

  1. Turn on javascript.options.experimental.explicit_resource_management and restart Firefox
  2. In the console, evaluate the following
{
using x = null
console.log(x)
debugger;
}
  1. Hover x in the console.log line

-> no tooltip, and there's an error in the browser console Debugger internal exception: Preview for <onsole.log(x> threw a SyntaxError

This adds the babel plugin supporting the explicit resource management API.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Summary: inline preview doesn't work on scripts using explicit resource management (i.e.e with the `using` keyword) → inline preview doesn't work on scripts using explicit resource management (with the `using` keyword)
Severity: -- → S3
Priority: -- → P3
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b597aa591c2b [devtools] Fix debugger preview tooltip on scripts with `using` keyword. r=devtools-reviewers,bomsy.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Regressions: 1934618
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: