Fix jsapi-test and jsreftest added by 28be8df0deb7 (r=burning)

This commit is contained in:
Luke Wagner 2011-07-06 13:25:16 -07:00
parent c9e1bf13c0
commit 454b198b26
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#include "tests.h"
JSPrincipals system_principals = {
NULL, NULL, NULL, 1, NULL, NULL
(char *)"", NULL, NULL, 1, NULL, NULL
};
JSClass global_class = {

View File

@ -41,18 +41,19 @@ var summary = 'Array.apply maximum arguments';
var actual = '';
var expect = '';
printBugNumber(BUGNUMBER);
printStatus (summary);
reportCompare(true, true, "");
//-----------------------------------------------------------------------------
if (getMaxArgs)
if (this.getMaxArgs)
test(getMaxArgs());
//-----------------------------------------------------------------------------
function test(length)
{
enterFunc ('test');
printBugNumber(BUGNUMBER);
printStatus (summary);
var a = new Array();
a[length - 2] = 'length-2';