No bug, fixing tinderbox orange apparently caused by missing OOM check, r=gal in person

This commit is contained in:
David Mandelin 2009-09-17 17:44:19 -07:00
parent fd60b3339c
commit 836a74cc80

View File

@ -321,6 +321,8 @@ js_Arguments(JSContext *cx, JSObject *parent, uint32 argc, JSObject *callee,
double *argv, js_ArgsPrivateNative *apn)
{
JSObject *argsobj = NewArguments(cx, parent, argc, callee);
if (!argsobj)
return NULL;
apn->argv = argv;
SetArgsPrivateNative(argsobj, apn);
return argsobj;