Bug 820713 - Assertion failure: cx->runtime->requestDepth || cx->runtime->isHeapBusy(), at js/src/jscntxt.cpp:1492. r=billm, a=blocking-basecamp
authorGregor Wagner <anygregor@gmail.com>
Thu, 13 Dec 2012 15:35:40 -0800
changeset 118879 2fad47a231072a13f1a01b14246fcbf610dce8f2
parent 118878 0047c670657bb73351fa1623d3f4e14b2da99df7
child 118880 908fb662b8abc7cad293e973771dd35c96915b97
push idunknown
push userunknown
push dateunknown
reviewersbillm, blocking-basecamp
bugs820713
milestone19.0a2
Bug 820713 - Assertion failure: cx->runtime->requestDepth || cx->runtime->isHeapBusy(), at js/src/jscntxt.cpp:1492. r=billm, a=blocking-basecamp
dom/time/DateCacheCleaner.cpp
--- a/dom/time/DateCacheCleaner.cpp
+++ b/dom/time/DateCacheCleaner.cpp
@@ -34,16 +34,17 @@ public:
       do_GetService("@mozilla.org/js/xpc/ContextStack;1");
     if (!stack) {
       NS_WARNING("Failed to get JSContextStack");
     }
     JSContext *cx = stack->GetSafeJSContext();
     if (!cx) {
       NS_WARNING("Failed to GetSafeJSContext");
     }
+    JSAutoRequest ar(cx);
     JS_ClearDateCaches(cx);
   }
 
 };
 
 StaticAutoPtr<DateCacheCleaner> sDateCacheCleaner;
 
 void