/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. var gTestcases = new Array;
  2. var gTc = gTestcases;
  3. var msg = '';
  4. function TestCase(n, d, e, a) {
  5. gTestcases[gTc++]=this;
  6. }
  7. TestCase.prototype.dump=function () {
  8. lines = msg
  9. for (var i=0; i<lines; ) { }
  10. }
  11. function writeHeaderToLog( string ) {
  12. for (var i = 0; ; i++) {
  13. gTestcases[i].dump();
  14. }
  15. }
  16. try {
  17. TIME_2000 = 946684800000
  18. } catch (exc1) {}
  19. addNewTestCase( Date, 999 );
  20. try {
  21. addNewTestCase( Date,TIME_2000 )( writeHeaderToLog( 2000,0,1,0,0,0,0), 0 );
  22. } catch (exc2) {}
  23. function addNewTestCase( DateCase, DateString, ResultArray ) {
  24. new TestCase
  25. Date.prototype=new TestCase
  26. }