Bug 1291928 - Expose JSSavedStack's stack before returning. r=bz, a=ritu
authorTerrence Cole <terrence@mozilla.com>
Wed, 03 Aug 2016 16:12:51 -0700
changeset 348116 404c54eecb4dcd1e9ee465ba054063471e310a5d
parent 348115 7f90dcc0445b8c06aa7529bb63dbed5991fc590d
child 348117 89ba44134660cdcf954e00ce8b387b0fbaeb7db3
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, ritu
bugs1291928
milestone50.0a2
Bug 1291928 - Expose JSSavedStack's stack before returning. r=bz, a=ritu
dom/bindings/Exceptions.cpp
--- a/dom/bindings/Exceptions.cpp
+++ b/dom/bindings/Exceptions.cpp
@@ -634,16 +634,17 @@ NS_IMETHODIMP JSStackFrame::GetFormatted
     mFormattedStackInitialized = true;
   }
 
   return NS_OK;
 }
 
 NS_IMETHODIMP JSStackFrame::GetNativeSavedFrame(JS::MutableHandle<JS::Value> aSavedFrame)
 {
+  JS::ExposeObjectToActiveJS(mStack);
   aSavedFrame.setObjectOrNull(mStack);
   return NS_OK;
 }
 
 NS_IMETHODIMP JSStackFrame::ToString(JSContext* aCx, nsACString& _retval)
 {
   _retval.Truncate();