Bug 1036782 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/src. r=jorendorff

This commit is contained in:
Chris Peterson
2014-07-14 19:14:54 -07:00
parent 68c2f09388
commit 2ff2fed875
46 changed files with 267 additions and 263 deletions

View File

@@ -278,13 +278,13 @@ BaseProxyHandler::iterate(JSContext *cx, HandleObject proxy, unsigned flags,
bool
BaseProxyHandler::call(JSContext *cx, HandleObject proxy, const CallArgs &args) const
{
MOZ_ASSUME_UNREACHABLE("callable proxies should implement call trap");
MOZ_CRASH("callable proxies should implement call trap");
}
bool
BaseProxyHandler::construct(JSContext *cx, HandleObject proxy, const CallArgs &args) const
{
MOZ_ASSUME_UNREACHABLE("callable proxies should implement construct trap");
MOZ_CRASH("callable proxies should implement construct trap");
}
const char *
@@ -307,7 +307,7 @@ bool
BaseProxyHandler::regexp_toShared(JSContext *cx, HandleObject proxy,
RegExpGuard *g) const
{
MOZ_ASSUME_UNREACHABLE("This should have been a wrapped regexp");
MOZ_CRASH("This should have been a wrapped regexp");
}
bool
@@ -356,7 +356,7 @@ BaseProxyHandler::weakmapKeyDelegate(JSObject *proxy) const
bool
BaseProxyHandler::getPrototypeOf(JSContext *cx, HandleObject proxy, MutableHandleObject protop) const
{
MOZ_ASSUME_UNREACHABLE("Must override getPrototypeOf with lazy prototype.");
MOZ_CRASH("Must override getPrototypeOf with lazy prototype.");
}
bool