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.
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
, andnew.target
are all not available. Something special will have to be done regardingthis
for instance properties.