зеркало из https://github.com/mozilla/pjs.git
Fix some optimized-build warnings, neither yet reported as far as I know. No bug, r=themaid
This commit is contained in:
Родитель
24c016f38c
Коммит
a3ccb97dbf
|
@ -1,11 +1,13 @@
|
|||
#include "tests.h"
|
||||
|
||||
#include "mozilla/Util.h"
|
||||
|
||||
BEGIN_TEST(testOOM)
|
||||
{
|
||||
JSString *jsstr = JS_ValueToString(cx, INT_TO_JSVAL(9));
|
||||
jsval tmp = STRING_TO_JSVAL(jsstr);
|
||||
JS_SetProperty(cx, global, "rootme", &tmp);
|
||||
const jschar *s = JS_GetStringCharsZ(cx, jsstr);
|
||||
mozilla::DebugOnly<const jschar *> s = JS_GetStringCharsZ(cx, jsstr);
|
||||
JS_ASSERT(s[0] == '9' && s[1] == '\0');
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -82,6 +82,7 @@ GetFunctionProxyConstruct(JSObject *proxy)
|
|||
return proxy->getSlotRef(JSSLOT_PROXY_CONSTRUCT);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static bool
|
||||
OperationInProgress(JSContext *cx, JSObject *proxy)
|
||||
{
|
||||
|
@ -93,6 +94,7 @@ OperationInProgress(JSContext *cx, JSObject *proxy)
|
|||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
ProxyHandler::ProxyHandler(void *family) : mFamily(family)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче