« Bugzilla Issues Index
#4466 — 9.4.4.7 CreateMappedArgumentsObject: Create properties with OrdinaryDefineOwnProperty
- bug_id:
4466
- creation_ts:
2015-08-21 11:10:00 -0700
- short_desc:
9.4.4.7 CreateMappedArgumentsObject: Create properties with OrdinaryDefineOwnProperty
- delta_ts:
2015-10-23 13:56:46 -0700
- product:
ECMA-262 Edition 6
- component:
technical issues
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- cc:
brterlso
- commentid:
14626
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-08-21 11:10:42 -0700
9.4.4.7 CreateMappedArgumentsObject ( func, formals, argumentsList, env )
It is necessary to define properties with OrdinaryDefineOwnProperty in CreateMappedArgumentsObject, because the [[ParameterMap]] internal slot is not yet set and [[DefineOwnProperty]] for exotic arguments objects uses that slot. It's not possible to simply move the map allocation before step 15, because the function bindings are not initialized when CreateMappedArgumentsObject is called.
Steps 15.b and 16 need to use [[DefineOwnProperty]].
- commentid:
14814
- comment_count:
1
- who:
André Bargull
- bug_when:
2015-10-23 11:27:43 -0700
(In reply to André Bargull from comment #0)
> It's not possible to simply move the map allocation before step 15,
Scratch that. Map allocation can be moved before step 15, but the map initialization needs to happen after installing the indexed arguments properties.
- commentid:
14857
- comment_count:
2
- who:
Brian Terlson
- bug_when:
2015-10-23 13:56:46 -0700
Fixed in ES2016 Draft.