Bug 1331668 - Fix static build bustage r=me
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 20 Jan 2017 16:23:27 +0000
changeset 375366 cb9e0b616c22a6f546ebff40eaeabb136ce9b587
parent 375365 e91f28eb9a8831d1988350a8cd9e4c41d2b637d4
child 375367 eee5f618279a9af4e188dfb228b309f119ae5dcb
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1331668
milestone53.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 1331668 - Fix static build bustage r=me
js/public/Class.h
--- a/js/public/Class.h
+++ b/js/public/Class.h
@@ -324,17 +324,17 @@ namespace js {
 
 template <class Wrapper>
 class WrappedPtrOperations<JS::PropertyResult, Wrapper>
 {
     const JS::PropertyResult& value() const { return static_cast<const Wrapper*>(this)->get(); }
 
   public:
     bool isFound() const { return value().isFound(); }
-    operator bool() const { return bool(value()); }
+    explicit operator bool() const { return bool(value()); }
     js::Shape* maybeShape() const { return value().maybeShape(); }
     js::Shape* shape() const { return value().shape(); }
     bool isNativeProperty() const { return value().isNativeProperty(); }
     bool isNonNativeProperty() const { return value().isNonNativeProperty(); }
     bool isDenseOrTypedArrayElement() const { return value().isDenseOrTypedArrayElement(); }
     js::Shape* asTaggedShape() const { return value().asTaggedShape(); }
 };