Closed
Bug 625870
Opened 14 years ago
Closed 14 years ago
Add JS_NewDateObject, JS_NewDateObjectMsec, JS_ObjectIsDate to the JSAPI
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status2.0 | --- | ? |
People
(Reporter: andrew, Unassigned)
Details
(Keywords: dev-doc-complete, Whiteboard: [fixed-in-tracemonkey])
Attachments
(1 file)
1.63 KB,
patch
|
jorendorff
:
review+
shaver
:
approval2.0+
|
Details | Diff | Splinter Review |
In our embedding code, we need to create JS Date objects and determine if objects are dates. We do this right now by using the underlying non-public methods. I'd like to get these added to the public API so we are not poking inside the engine for them.
Attachment #503949 -
Flags: review?(jorendorff)
Attachment #503949 -
Flags: approval2.0?
Comment 1•14 years ago
|
||
Comment on attachment 503949 [details] [diff] [review]
Patch to add functions to jsapi.h/jsapi.cpp
Looks great to me. I think it's well worth taking, even this close to the release, because it's a community contribution and can't introduce bugs in our stuff, because we won't be calling the new functions.
Attachment #503949 -
Flags: review?(jorendorff) → review+
Comment 3•14 years ago
|
||
Comment on attachment 503949 [details] [diff] [review]
Patch to add functions to jsapi.h/jsapi.cpp
Agree, land away.
Attachment #503949 -
Flags: approval2.0? → approval2.0+
Comment 4•14 years ago
|
||
Thanks, ap!
http://hg.mozilla.org/tracemonkey/rev/27bf86dbdb52
(Rats, I forgot to put the bug number in the commit message. Shouldn't be too awful for anyone, I hope.)
Summary: Add JS_NewDateObject/JS_NewDateObjectMsec/JS_ObjectIsDate to JSAPI → Add JS_NewDateObject, JS_NewDateObjectMsec, JS_ObjectIsDate to the JSAPI
Whiteboard: [fixed-in-tracemonkey]
Comment 5•14 years ago
|
||
Backed out due to a silly mistake (JS_NewDateObject has two parameters named m):
https://hg.mozilla.org/tracemonkey/rev/75354982793c
I've fixed that locally and I'll re-push later today.
Whiteboard: [fixed-in-tracemonkey]
Comment 6•14 years ago
|
||
Whiteboard: [fixed-in-tracemonkey]
Comment 7•14 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/54a8ab97c419
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Keywords: dev-doc-needed
Updated•13 years ago
|
Version: Trunk → 2.0 Branch
Comment 8•13 years ago
|
||
evilpie documented these; I tidied them up and added them to the list on the JSAPI Reference page.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•