Fix bug 812104 - Fix bustage due to UnwrapObjectChecked. r=Standard8
authorPhilipp Kewisch <mozilla@kewis.ch>
Thu, 15 Nov 2012 10:03:45 +0100
changeset 11514 ae19df26b793199c6d7c419d673ed5c27b5f5496
parent 11513 f3c76cb43c7754b5574a309dd39f01251c9ac5d9
child 11515 f9cec7b19696784a459ba98a9af47764d3b8882b
push id8603
push usermozilla@kewis.ch
push dateThu, 15 Nov 2012 09:41:28 +0000
treeherdercomm-central@ae19df26b793 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs812104
Fix bug 812104 - Fix bustage due to UnwrapObjectChecked. r=Standard8
calendar/base/src/calDateTime.cpp
--- a/calendar/base/src/calDateTime.cpp
+++ b/calendar/base/src/calDateTime.cpp
@@ -625,17 +625,17 @@ calDateTime::GetJsDate(JSContext* aCx, J
 NS_IMETHODIMP
 calDateTime::SetJsDate(JSContext* aCx, const JS::Value& aDate)
 {
     if (!aDate.isObject()) {
         mIsValid = false;
         return NS_OK;
     }
 
-    JSObject* dobj = js::UnwrapObjectChecked(aCx, JSVAL_TO_OBJECT(aDate));
+    JSObject* dobj = js::UnwrapObjectChecked(JSVAL_TO_OBJECT(aDate));
     JSAutoCompartment ac(aCx, dobj);
 
     if (!JS_ObjectIsDate(aCx, dobj) || !js_DateIsValid(dobj)) {
         mIsValid = false;
         return NS_OK;
     }
 
     PRTime utcTime = PRTime(js_DateGetMsecSinceEpoch(dobj)) * 1000;