Closed
Bug 783284
Opened 13 years ago
Closed 13 years ago
Rename {winLastCreation, winLastWrite, winLastAccess}Time -> Date
Categories
(Toolkit Graveyard :: OS.File, defect)
Toolkit Graveyard
OS.File
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: Yoric, Assigned: Yoric)
Details
Attachments
(1 file, 1 obsolete file)
3.58 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
For uniformity, we should rename winLastCreationTime et al to winLastCreationDate.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → dteller
Attachment #652458 -
Flags: review?(nfroyd)
![]() |
||
Comment 2•13 years ago
|
||
Comment on attachment 652458 [details] [diff] [review]
Renaming *Time to *Date
Review of attachment 652458 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/osfile/osfile_win_front.jsm
@@ +611,3 @@
> let date = FILETIME_to_Date(this._ftCreationTime);
> + delete this.winCreationDate;
> + Object.defineProperty(this, "winCreationDate", {value: date});
For my own edification, why are we doing this delete/defineProperty dance? This doesn't appear to buy anything save garbage generation, and some quick Googling doesn't turn up this pattern. I thought the whole point of getters was that you could compute things dynamically.
Attachment #652458 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Does the following reply to your question?
https://bug766194.bugzilla.mozilla.org/attachment.cgi?id=641495
![]() |
||
Comment 4•13 years ago
|
||
(In reply to David Rajchenbach Teller [:Yoric] from comment #3)
> Does the following reply to your question?
> https://bug766194.bugzilla.mozilla.org/attachment.cgi?id=641495
Oh my. That's...awful. I see the idiom now, but...*whistles*.
Assignee | ||
Comment 5•13 years ago
|
||
In js-ctypes based stuff, I have started using this idiom everywhere, because calling a C function from JS is expensive, non-JIT-able, and also requires some gc-ing.
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #652458 -
Attachment is obsolete: true
Attachment #652775 -
Flags: review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 7•13 years ago
|
||
Green on Try.
https://tbpl.mozilla.org/?tree=Try&rev=e01235322203
https://hg.mozilla.org/integration/mozilla-inbound/rev/15cdfa85ed10
Flags: in-testsuite+
Keywords: checkin-needed
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•2 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•