« Bugzilla Issues Index
#3516 — 12.7.3 The Addition operator ( + ), step 11: Remove the ad hoc check for Symbol
- bug_id:
3516
- creation_ts:
2015-01-06 13:23:00 -0800
- short_desc:
12.7.3 The Addition operator ( + ), step 11: Remove the ad hoc check for Symbol
- delta_ts:
2015-01-15 16:19:02 -0800
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 30: December 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:
11314
- comment_count:
0
- who:
Claude Pache
- bug_when:
2015-01-06 13:23:44 -0800
12.7.3 The Addition operator ( + )
Step 11.a of the algorithm reads:
If Type(lprim) is Symbol or Type(rprim) is Symbol, then throw a TypeError exception.
Special-casing Symbol is not needed, because ToString() applied to it will throw a TypeError. I suggest the following (compare with steps 12-16):
11. If Type(lprim) is String or Type(rprim) is String, then
a. Let lstr be ToString(lprim).
b. ReturnIfAbrupt(lstr).
c. Let rstr be ToString(rprim).
d. ReturnIfAbrupt(rstr).
e. Return the result of concatenating lstr and rstr.
- commentid:
11325
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-01-13 10:19:56 -0800
fixed in rev31` editor's draft
- commentid:
11423
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-01-15 16:19:02 -0800
In Rev31