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)
Core
JavaScript Engine
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().
Comment 1•9 years ago
|
||
Any ETA before arrow functions are available in constructors again?
Reporter | ||
Comment 2•9 years ago
|
||
(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.
Comment 3•9 years ago
|
||
Good to hear. Thanks!
Updated•9 years ago
|
Blocks: harmony-classes
Reporter | ||
Comment 4•9 years ago
|
||
This is actually done, as written.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 5•9 years ago
|
||
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.
Comment 6•9 years ago
|
||
(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.
You need to log in
before you can comment on or make changes to this bug.
Description
•