Closed Bug 625870 Opened 11 years ago Closed 11 years ago
_New Date Object, JS _New Date Object Msec, JS _Object Is Date to the JSAPI
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.
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 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+
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
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.
cdleary-bot mozilla-central merge info: http://hg.mozilla.org/mozilla-central/rev/54a8ab97c419
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
evilpie documented these; I tidied them up and added them to the list on the JSAPI Reference page.
You need to log in before you can comment on or make changes to this bug.