Closed Bug 1568823 Opened 6 years ago Closed 6 years ago

Simplify/remove devtools' Parser.jsm

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

See Bug 1563474. Most of https://searchfox.org/mozilla-central/rev/40e889be8ff926e32f7567957f4c316f14f6fbef/devtools/shared/Parser.jsm is unused and can be removed. There is also no need to keep this as a JSM.

Depends on D39335
Looking in details at get(), the implementation can also be simplified

Oh, if we could not have this as a jsm, we could use it in Worker context, and we could simplify js-property-provider !

(In reply to Nicolas Chevobbe [:nchevobbe] from comment #5)

Oh, if we could not have this as a jsm, we could use it in Worker context, and we could simplify js-property-provider !

Sorry for giving any false hope, but even if the file can be a regular module, it still needs to use reflect.jsm, so it will still be a no go in worker environments I guess :/

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/66876e1aedd8 Remove all unused methods from Parser.jsm r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/b6e25b59fb8c Stop exporting reflectionAPI from Parser.jsm r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/d83446689677 Move Parser.jsm to a regular module in devtools/shared/webconsole r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/549f27fe407d Simplify parser.js and rename to parser-helper r=nchevobbe
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: