Open Bug 1415188 Opened 7 years ago Updated 2 years ago

Consider removing Reflect.parse's "builder" API

Categories

(Core :: JavaScript Engine, enhancement, P5)

enhancement

Tracking

()

Tracking Status
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: jorendorff, Unassigned)

Details

Reflect.parse takes an optional `builder` argument. If present, it's an object with a ton of methods, and it's used to build the resulting AST. (The default, if `builder` is missing, is to build a straightforward JSON AST.)

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API#Builder_objects

This API is brittle. Every time we add anything to JS syntax--or remove an obsolete feature--all code using the builder API breaks. Therefore I doubt anyone is using it and we should remove it.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.