PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/bug680842.js

http://github.com/zpao/v8monkey
JavaScript | 27 lines | 26 code | 1 blank | 0 comment | 2 complexity | d5a4f1ce0c2f84453d07b9bde3de8003 MD5 | raw file
 1
 2var gTestcases = new Array;
 3var gTc = gTestcases;
 4var msg = '';
 5function TestCase(n, d, e, a) {
 6  gTestcases[gTc++]=this;
 7}
 8TestCase.prototype.dump=function () {
 9  lines = msg
10  for (var i=0; i<lines; ) {  }
11}
12function writeHeaderToLog( string ) {
13  for (var i = 0; ; i++) {
14    gTestcases[i].dump();
15  }
16}
17try {
18  TIME_2000 = 946684800000
19} catch (exc1) {}
20addNewTestCase( Date, 999 );
21try {
22  addNewTestCase( Date,TIME_2000 )( writeHeaderToLog( 2000,0,1,0,0,0,0), 0 );
23} catch (exc2) {}
24function addNewTestCase( DateCase, DateString, ResultArray ) {
25  new TestCase
26  Date.prototype=new TestCase
27}