Closed Bug 1810409 Opened 3 years ago Closed 3 years ago

Simplify pretty-fast.js

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 external file)

There's a couple thing we can do:

  • remove the custom repeat function and use String#repeat instead
  • switch dictionnaries (PRE_ARRAY_LITERAL_TOKENS, PREVENT_ASI_AFTER_TOKENS, PREVENT_ASI_BEFORE_TOKENS) to Sets
  • Replace custom repeat function with String#repeat
  • Switch dictionnaries from Objects to Sets

Depends on D166674

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c5f7c4c5bba [devtools] Simplify pretty-fast.js .r=ochameau.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: