Fix jsapi-test and jsreftest added by 28be8df0deb7 (r=burning)
authorLuke Wagner <luke@mozilla.com>
Wed, 06 Jul 2011 13:25:16 -0700
changeset 72448 0661e7077dceb6cbaf3c50b2b624cddcda04765f
parent 72447 28be8df0deb7de5209b976009ae8519eac374272
child 72449 4d17b74a1df220fad9d18f66e7cbb39139188b98
push id20718
push usermak77@bonardo.net
push dateThu, 07 Jul 2011 10:03:07 +0000
treeherdermozilla-central@3f9e716164ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersburning
milestone8.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Fix jsapi-test and jsreftest added by 28be8df0deb7 (r=burning)
js/src/jsapi-tests/testChromeBuffer.cpp
js/src/tests/js1_5/Array/regress-350256-02.js
--- a/js/src/jsapi-tests/testChromeBuffer.cpp
+++ b/js/src/jsapi-tests/testChromeBuffer.cpp
@@ -1,12 +1,12 @@
 #include "tests.h"
 
 JSPrincipals system_principals = {
-    NULL, NULL, NULL, 1, NULL, NULL
+    (char *)"", NULL, NULL, 1, NULL, NULL
 };
 
 JSClass global_class = {
     "global",
     JSCLASS_IS_GLOBAL | JSCLASS_GLOBAL_FLAGS,
     JS_PropertyStub,
     JS_PropertyStub,
     JS_PropertyStub,
--- a/js/src/tests/js1_5/Array/regress-350256-02.js
+++ b/js/src/tests/js1_5/Array/regress-350256-02.js
@@ -36,28 +36,29 @@
  * ***** END LICENSE BLOCK ***** */
 
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 350256;
 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';
   a[length - 1] = 'length-1';
 
   var b = Array.apply(null, a);
 
   expect = length + ',length-2,length-1';