« Bugzilla Issues Index
#2745 — 26.5.2.1: missing arg to ObjectCreate
- bug_id:
2745
- creation_ts:
2014-04-26 16:43:00 -0700
- short_desc:
26.5.2.1: missing arg to ObjectCreate
- delta_ts:
2014-06-01 11:44:42 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 23: April 5, 2014 Draft
- 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:
7929
- comment_count:
0
- who:
Michael Dyck
- bug_when:
2014-04-26 16:43:02 -0700
In 26.5.2.1 "Proxy.revocable ( target, handler )",
step 5 says:
Let result be the result of ObjectCreate().
This is missing an argument for ObjectCreate's 'proto' parameter. Change:
ObjectCreate()
to:
ObjectCreate(null)
?
- commentid:
8148
- comment_count:
1
- who:
Michael Dyck
- bug_when:
2014-05-05 15:17:00 -0700
Sorry, I missed this sentence in the preamble for ObjectCreate:
If no arguments are provided %ObjectPrototype%
is used as the value of /proto/.
So the call in question is valid.
However, having 'proto' be optional just for the benefit of this single call isn't worth it. Change
ObjectCreate()
to
ObjectCreate(%ObjectPrototype%)
in 26.5.2.1, and you can delete that sentence from ObjectCreate's preamble.
- commentid:
8262
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-05-09 12:22:15 -0700
fixed in rev25 editor's draft
- commentid:
8743
- comment_count:
3
- who:
Michael Dyck
- bug_when:
2014-06-01 11:44:42 -0700
confirmed fixed.