archives

« Bugzilla Issues Index

#4142 — 10.2: definition of 'function code'


In 10.2 "Types of Source Code",
bullet 3 says:
Function code is source text that is parsed to supply the value of the
[[ECMAScriptCode]] internal slot (see 9.2) of function and generator
objects. It also includes the code that defines and initializes the formal
parameters of the function.

Rather than the second sentence, maybe it would be better to modify the first sentence to say:
... the [[ECMAScriptCode]] and [[FormalParameters]] internal slots ...


Also, the subsequent Note says:
Function code is also derived from the last argument to the Function
constructor (19.2.1.1) and the GeneratorFunction constructor (25.2.1.1).
but presumably it's not just the last argument.

s|the last argument|the arguments|


fixed in rev36 editor's draft


in rev36