tc39 / proposal-class-public-fields

Stage 2 proposal for public class fields in ECMAScript
https://tc39.github.io/proposal-class-public-fields/
488 stars 25 forks source link

do not handle thunking of intiialisation expression using "function wrapper" #8

Closed michaelficarra closed 8 years ago

michaelficarra commented 9 years ago

A much better way to do it is to capture the ECMAScript code itself as well as the current environment record. Save that, then it can be evaluated later. Additionally, this will clarify that constructor parameters, arguments, and new.target are all not available. Something special will have to be done regarding this for instance properties.

jeffmo commented 8 years ago

This is now how the proposal is specified: https://jeffmo.github.io/es-class-public-fields/#initialize-public-instance-fields