mozilla-spidermonkey / jsparagus

Experimental JS parser-generator project.
Other
447 stars 20 forks source link

Add note about var_count in FunctionScopeData::new #550

Closed arai-a closed 4 years ago

arai-a commented 4 years ago

Step 27.c.i filters arguments binding out of body-level var, and function_var_names_count calculated before FunctionScopeData::new call doesn't reflect it.

FunctionScopeData::new doesn't require var_count to be exact value, because it's used only for capacity.

the parameter name should be max_var_count, and needs some comment.