diff --git a/calendar/base/src/calDateTime.cpp b/calendar/base/src/calDateTime.cpp index 28622d751d..e8a87a5bd6 100644 --- a/calendar/base/src/calDateTime.cpp +++ b/calendar/base/src/calDateTime.cpp @@ -630,7 +630,7 @@ calDateTime::SetJsDate(JSContext* aCx, const JS::Value& aDate) return NS_OK; } - JSObject* dobj = js::UnwrapObjectChecked(JSVAL_TO_OBJECT(aDate)); + JSObject* dobj = js::CheckedUnwrap(JSVAL_TO_OBJECT(aDate)); JSAutoCompartment ac(aCx, dobj); if (!JS_ObjectIsDate(aCx, dobj) || !js_DateIsValid(dobj)) {