Bug 975803 - Workaround a MSVC10 compiler bug. r=luke
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Tue, 25 Feb 2014 21:50:40 +0900
changeset 170697 d20fd7b8501a200d3d1e4a5e9b10fb5a5b96993c
parent 170696 17c0f29d70089e9989eda470c48c518493dbae29
child 170698 490d3e8706c324bc90c4b2a0d1681908d7298cc1
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersluke
bugs975803
milestone30.0a1
Bug 975803 - Workaround a MSVC10 compiler bug. r=luke
js/src/jsscript.cpp
--- a/js/src/jsscript.cpp
+++ b/js/src/jsscript.cpp
@@ -943,17 +943,17 @@ js::XDRScript(XDRState<mode> *xdr, Handl
             RootedObject tmp(cx, *objp);
             if (!XDRObjectLiteral(xdr, &tmp))
                 return false;
             *objp = tmp;
             break;
           }
 
           default: {
-            MOZ_ASSUME_UNREACHABLE("Unknown class kind.");
+            MOZ_ASSERT(false, "Unknown class kind.");
             return false;
           }
         }
     }
 
     for (i = 0; i != nregexps; ++i) {
         if (!XDRScriptRegExpObject(xdr, &script->regexps()->vector[i]))
             return false;