Closed
Bug 927649
Opened 12 years ago
Closed 12 years ago
for-of iterator result should use object literal syntax instead of Object.create(null)
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: bkelly, Assigned: bkelly)
References
Details
(Whiteboard: [c= p=1 s= u=])
Attachments
(1 file)
|
1.61 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
As discussed in bug 907077 comment 78 and comment 80 the es6 for-of iterator implementation should use object literal syntax instead of Object.create(null). This is for two reasons:
1) The spec says that the result should have %ObjectPrototype% as is its prototype.
2) Its faster.
Patch to come.
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #818137 -
Flags: review?(jorendorff)
Updated•12 years ago
|
Attachment #818137 -
Flags: review?(jorendorff) → review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Whiteboard: [c= p= s= u=] → [c= p=1 s= u=]
Comment 3•12 years ago
|
||
Keywords: checkin-needed
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•