Bug 1291928 - Expose JSSavedStack's stack before returning; r=bz
authorTerrence Cole <terrence@mozilla.com>
Wed, 03 Aug 2016 16:12:51 -0700
changeset 308285 492d8382a49c86b16f758edb67b46d061adac5fc
parent 308284 425fc9463eafa24209efd659b6e7bcd8cb3732ed
child 308286 148015158424d5d53446fbbf22438fb12da4c6f3
push id31092
push usercbook@mozilla.com
push dateFri, 05 Aug 2016 10:16:59 +0000
treeherderautoland@b97dd7dd3cb9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1291928
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1291928 - Expose JSSavedStack's stack before returning; r=bz
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();