Ticket #8003: 8003_TC.patch

File 8003_TC.patch, 630 bytes (added by Garry Yao, 13 years ago)
  • trunk/test/test.js

     
    319319
    320320                [       "do{}while(1)" ],
    321321
    322                 [       "do{}while(1)A();", "do{}while(1);A();" ]
    323         ];
     322                [       "do{}while(1)A();", "do{}while(1);A();" ],
    324323
     324                // Test local variable shorten doesn't conflict with global.
     325                [       "( function() { var local; a=1; } )(); ", "(function(){var b;a=1;" ],
     326
     327                // Test variable declare comes after init.
     328                [       "( function() { b=1; var b2; } )(); ", "(function(){a=1;var a;})();" ] ];
     329
    325330        var tests =
    326331        {
    327332        };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy