Closed arai-a closed 6 years ago
@syg I'm about to add attribute unsigned long length;
to LazyFunctionExpression
(also declaration/method/etc).
Do you think it's better adding it also to EagerFunctionDeclaration
as well for consistency?
@arai-a Missed this. Good question... I'd add it for both eager and lazy.
thanks!
Currently
FormalParameters params
field is insideFunctionExpressionContents
interface, which has[Lazy]
attribute insideLazyFunctionExpression
interface. Function object's.length
property needs that information, even before executing the function.if we're going to entirely skip parsing
FunctionExpressionContents contents
field for lazy functions until executing the function, the length of formal parameters should be put intoLazyFunctionExpression
interface.