/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
- 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
- }