Closed
Bug 791944
Opened 13 years ago
Closed 13 years ago
Use Object.defineProperty() instead of __defineGetter__ in XPCOMUtils.defineLazyGetter()
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: tetsuharu, Assigned: tetsuharu)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.24 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
Use Object.defineProperty() instead of __defineGetter__ in XPCOMUtils.defineLazyGetter()
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #662055 -
Flags: review?(josh)
Comment 2•13 years ago
|
||
Comment on attachment 662055 [details] [diff] [review]
patch
Given that I know little about this file, I looked at the hg log, checked out the last bug to make a significant change and looked at the reviewer for that patch. Benjamin, you're up!
Attachment #662055 -
Flags: review?(josh) → review?(benjamin)
Comment 3•13 years ago
|
||
Comment on attachment 662055 [details] [diff] [review]
patch
I'm going to delegate this to mak since .defineProperty isn't something I've worked with before, and he wrote a lot of this file.
Attachment #662055 -
Flags: review?(benjamin) → review?(mak77)
Comment 4•13 years ago
|
||
Comment on attachment 662055 [details] [diff] [review]
patch
Review of attachment 662055 [details] [diff] [review]:
-----------------------------------------------------------------
Yes this works the same, __defineGetter__ is deprecated, so good to replace it.
Did you see bug 647423? Maybe you could be interested in filing dependencies of it and start doing a platform wide replacement.
Likely would also be a good first bug, fwiw.
::: js/xpconnect/loader/XPCOMUtils.jsm
@@ +176,5 @@
> + delete aObject[aName];
> + return aObject[aName] = aLambda.apply(aObject);
> + },
> + configurable: true,
> + enumerable: true,
please remove the trailing comma from here
Attachment #662055 -
Flags: review?(mak77) → review+
Comment 5•13 years ago
|
||
already tested by current tests using defineLazy*Anything*
Assignee: nobody → saneyuki.s.snyk
Status: NEW → ASSIGNED
Flags: in-testsuite+
OS: Mac OS X → All
Hardware: x86 → All
| Assignee | ||
Comment 6•13 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #4)
> Did you see bug 647423? Maybe you could be interested in filing dependencies
> of it and start doing a platform wide replacement.
> Likely would also be a good first bug, fwiw.
Thank you, Marco. I'll look into it.
Attachment #662055 -
Attachment is obsolete: true
Attachment #664384 -
Flags: review?(mak77)
Updated•13 years ago
|
Attachment #664384 -
Flags: review?(mak77) → review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 7•13 years ago
|
||
Keywords: checkin-needed
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•