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 350186 404c54eecb4dcd1e9ee465ba054063471e310a5d
parent 350185 7f90dcc0445b8c06aa7529bb63dbed5991fc590d
child 350187 89ba44134660cdcf954e00ce8b387b0fbaeb7db3
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [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();