summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug680842.js
blob: 016673fb72c158bd3e7772095990a1d28eec7f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var gTestcases = new Array;
var gTc = gTestcases;
var msg = '';
function TestCase(n, d, e, a) {
  gTestcases[gTc++]=this;
}
TestCase.prototype.dump=function () {
  lines = msg
  for (var i=0; i<lines; ) {  }
}
function writeHeaderToLog( string ) {
  for (var i = 0; ; i++) {
    gTestcases[i].dump();
  }
}
try {
  TIME_2000 = 946684800000
} catch (exc1) {}
addNewTestCase( Date, 999 );
try {
  addNewTestCase( Date,TIME_2000 )( writeHeaderToLog( 2000,0,1,0,0,0,0), 0 );
} catch (exc2) {}
function addNewTestCase( DateCase, DateString, ResultArray ) {
  new TestCase
  Date.prototype=new TestCase
}