Closed Bug 1103418 Opened 10 years ago Closed 10 years ago

Use Object.assign instead of copySharedBaseToPrototype

Categories

(Chat Core :: IRC, defect)

x86
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aleth, Assigned: aleth)

Details

Attachments

(1 file)

      No description provided.
Attachment #8527235 - Flags: review?(clokep)
Why?

Also, are you sure this really does the same thing?
(In reply to Florian Quèze [:florian] [:flo] from comment #2)
> Why?

One less custom helper function needed?
 
> Also, are you sure this really does the same thing?

There is a polyfill on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign. There would be edge case differences if GenericIRCConversation didn't just have standard own properties.

Btw, I'm not wedded to this, but I thought a patch was a quick way to discuss it ;)
Bah, ignore me, I'm tired. I looked at the patch quickly and thought you were removing some of the prototype hackery I did a long time ago in imThemes.jsm.
Comment on attachment 8527235 [details] [diff] [review]
objectassign.diff

Review of attachment 8527235 [details] [diff] [review]:
-----------------------------------------------------------------

Assuming you've tested this, that change looks  like a nice simplification.
Attachment #8527235 - Flags: review?(clokep) → review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/287344335622
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: