« Bugzilla Issues Index
#4142 — 10.2: definition of 'function code'
- bug_id:
4142
- creation_ts:
2015-03-08 12:22:00 -0700
- short_desc:
10.2: definition of 'function code'
- delta_ts:
2015-03-17 16:57:08 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 35: March 4, 2015 Release Candidate 2
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Michael Dyck
- assigned_to:
Allen Wirfs-Brock
- commentid:
13643
- comment_count:
0
- who:
Michael Dyck
- bug_when:
2015-03-08 12:22:01 -0700
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 ...
- commentid:
13650
- comment_count:
1
- who:
Michael Dyck
- bug_when:
2015-03-08 17:42:53 -0700
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|
- commentid:
13679
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-03-10 11:19:17 -0700
fixed in rev36 editor's draft
- commentid:
13839
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2015-03-17 16:57:08 -0700
in rev36