« Bugzilla Issues Index
#3252 — 7.1.14 ToPropertyKey: accept objects whose primitive value is a symbol
- bug_id:
3252
- creation_ts:
2014-09-30 09:04:00 -0700
- short_desc:
7.1.14 ToPropertyKey: accept objects whose primitive value is a symbol
- delta_ts:
2014-10-14 15:17:53 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 27: August 24, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Claude Pache
- assigned_to:
Allen Wirfs-Brock
- commentid:
10255
- comment_count:
0
- who:
Claude Pache
- bug_when:
2014-09-30 09:04:15 -0700
Currently, ToPropertyKey(argument) is specified to throw if the argument is an object that can't be converted to a string. IMHO, it should accept objects such that
ToPrimitive(argument, hint string) is a symbol (this includes Object(Symbol())):
1. Let key be ToPrimitive(argument, hint string).
2. ReturnIfAbrupt(key).
3. If Type(key) is Symbol, return key.
4. Return ToString(key).
- commentid:
10279
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-10-08 09:28:35 -0700
fixed in rev28 editor's draft
- commentid:
10434
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-10-14 15:17:53 -0700
fixed in rev28