Open Bug 2015239 Opened 9 months ago Updated 9 months ago

Use private class fields in devtools/client/debugger/dist/pretty-print-worker.js

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: cvl123abc, Unassigned)

References

(Depends on 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Steps to reproduce:

Reviewed devtools/client/debugger/dist/pretty-print-worker.js and identified underscore-prefixed properties and methods that are used as private class members.

Actual results:

The file currently uses underscore-prefixed properties and methods to indicate privacy.

Expected results:

Use JavaScript private class fields and methods (#) instead of underscore-prefixed properties.

I’m working on this as part of the ongoing private fields migration (meta bug 2011387).

Depends on: 2011387

The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Debugger
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.