Bug 1107639 - Fix build error due to missing explicit keyword on JSExceptionState constructor r=me on a CLOSED TREE
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 23 Jan 2015 11:17:15 +0000
changeset 225375 9b70cf25865defe6687272d12c8116ba952bb9d5
parent 225374 2852b51eb56ce228b2447a87f5fe29079b95bf7d
child 225376 6e2a8cd91dfdd794235572889e7282062670f7c6
push id28159
push userryanvm@gmail.com
push dateFri, 23 Jan 2015 17:30:19 +0000
treeherdermozilla-central@a6bbabebed2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1107639
milestone38.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 1107639 - Fix build error due to missing explicit keyword on JSExceptionState constructor r=me on a CLOSED TREE
js/src/jsapi.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -5558,17 +5558,17 @@ JS::AutoSaveExceptionState::~AutoSaveExc
             context->overRecursed_ = wasOverRecursed;
             context->throwing = true;
             context->unwrappedException_ = exceptionValue;
         }
     }
 }
 
 struct JSExceptionState {
-    JSExceptionState(JSContext *cx) : exception(cx) {}
+    explicit JSExceptionState(JSContext *cx) : exception(cx) {}
     bool throwing;
     PersistentRootedValue exception;
 };
 
 JS_PUBLIC_API(JSExceptionState *)
 JS_SaveExceptionState(JSContext *cx)
 {
     JSExceptionState *state;