Closed
Bug 913301
Opened 12 years ago
Closed 12 years ago
escodegen cannot handle some syntax (ArrowExpression, ForOfStatement, SpreadExpression, etc)
Categories
(DevTools :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: lp_, Unassigned)
References
Details
escodegen cannot handle some syntax (ArrowExpression, ForOfStatement, SpreadExpression, etc)
In Scratchpad of current Nightly, when "Pretty Print", any of the following lines will throw
foo = (x) => x+1;
for (x of [1,2,3]) console.log(x);
y = [0, ...[1,2,3]];
escodegen issue "Following esprima harmony branch" https://github.com/Constellation/escodegen/issues/12 has stalled for a year.
Maybe it's better to reactive bug 590755, and finish the AST Decompiler.
Comment 2•12 years ago
|
||
Related discussion about the differences between Parser API and Esprima's harmony AST: https://groups.google.com/d/msg/mozilla.dev.tech.js-engine.internals/viTrirW_Kjc/BnymHfNDPzEJ.
Comment 3•12 years ago
|
||
I think it is best to play nice-open-source-citizen and send patches to escodegen. The whole point of integrating escodegen was to avoid NIH and re-inventing the wheel. Better to make escodegen better for everyone than to fork or do our own thing.
Comment 4•12 years ago
|
||
We escodegen developers welcome contributions!
And we'd like to cooperate with SpiderMonkey & Firefox to make Parser API & js-tools more powerful :)
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•12 years ago
|
||
escodegen was removed in bug 930141
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
acorn still cannot handle these listed syntax.
filed Bug 938203
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•