Closed Bug 1169734 Opened 9 years ago Closed 9 years ago

Make super() work outside of arrow functions or eval

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: efaust, Unassigned)

References

Details

This requires the following steps: 1) Disable the use of eval or arrow functions inside derived class constructors. 2) Implement a TDZ-like |this| inside derived class constructors 3) Provide parser and emitter support for super().
Depends on: 1169736
Depends on: 1169740
Any ETA before arrow functions are available in constructors again?
(In reply to Kohei Yoshino [:kohei] from comment #1) > Any ETA before arrow functions are available in constructors again? There is hope! Jan is working on bug 1132183, which should allow us to get super() working properly inside derived class constructors. Hopefully this will be done soon. My understanding is that arrow functions and super() don't work in any of the major engines at the moment, though that may be stale.
Good to hear. Thanks!
Depends on: 1132183
This is actually done, as written.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
I guess one more step is missing. As per Bug 1132183, we can do this now, right? 4) Re-enable the use of eval or arrow functions inside derived class constructors.
(In reply to Kohei Yoshino [:kohei] from comment #5) > I guess one more step is missing. As per Bug 1132183, we can do this now, > right? > > 4) Re-enable the use of eval or arrow functions inside derived class > constructors. This is being tracked in bug 1230710.
Depends on: 1230710
You need to log in before you can comment on or make changes to this bug.