зеркало из https://github.com/mozilla/pjs.git
Try to fix redness on one Mac tinderbox, r=red
--HG-- extra : rebase_source : cfaeae4518917131658367f4d9f7c98cf829f767
This commit is contained in:
Родитель
05ff4ae66b
Коммит
a4aec95946
|
@ -41,6 +41,8 @@
|
|||
/*
|
||||
* JS object implementation.
|
||||
*/
|
||||
#define __STDC_LIMIT_MACROS
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "jstypes.h"
|
||||
|
@ -71,6 +73,7 @@
|
|||
#include "jsscript.h"
|
||||
#include "jsscriptinlines.h"
|
||||
#include "jsstaticcheck.h"
|
||||
#include "jsstdint.h"
|
||||
#include "jsstr.h"
|
||||
#include "jstracer.h"
|
||||
#include "jsdbgapi.h"
|
||||
|
@ -2065,7 +2068,8 @@ obj_keys(JSContext *cx, uintN argc, jsval *vp)
|
|||
return JS_FALSE;
|
||||
vp[1] = OBJECT_TO_JSVAL(proto);
|
||||
|
||||
JSObject *aobj = js_NewArrayWithSlots(cx, proto, ida.length());
|
||||
JS_ASSERT(ida.length() <= UINT32_MAX);
|
||||
JSObject *aobj = js_NewArrayWithSlots(cx, proto, uint32(ida.length()));
|
||||
if (!aobj)
|
||||
return JS_FALSE;
|
||||
*vp = OBJECT_TO_JSVAL(aobj);
|
||||
|
|
Загрузка…
Ссылка в новой задаче