| OLD | NEW | 
| (Empty) |  | 
 |    1 // Copyright 2013 the V8 project authors. All rights reserved. | 
 |    2 // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 
 |    3 // | 
 |    4 // Redistribution and use in source and binary forms, with or without | 
 |    5 // modification, are permitted provided that the following conditions | 
 |    6 // are met: | 
 |    7 // 1.  Redistributions of source code must retain the above copyright | 
 |    8 //     notice, this list of conditions and the following disclaimer. | 
 |    9 // 2.  Redistributions in binary form must reproduce the above copyright | 
 |   10 //     notice, this list of conditions and the following disclaimer in the | 
 |   11 //     documentation and/or other materials provided with the distribution. | 
 |   12 // | 
 |   13 // THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN
     Y | 
 |   14 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 
 |   15 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 
 |   16 // DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN
     Y | 
 |   17 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 
 |   18 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 
 |   19 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O
     N | 
 |   20 // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
 |   21 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 
 |   22 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
 |   23  | 
 |   24 description("Tests that assignments to global variables behave properly when the
      property table is rehashed."); | 
 |   25  | 
 |   26 var result; | 
 |   27  | 
 |   28 result = (function() { | 
 |   29     a = 0; | 
 |   30     b = 1; | 
 |   31     c = 2; | 
 |   32     d = 3; | 
 |   33     e = 4; | 
 |   34     f = 5; | 
 |   35     g = 6; | 
 |   36     h = 7; | 
 |   37     i = 8 | 
 |   38     j = 9; | 
 |   39     k = 10; | 
 |   40     l = 11; | 
 |   41     m = 12; | 
 |   42     n = 13; | 
 |   43     o = 14; | 
 |   44     p = 15; | 
 |   45     q = 16; | 
 |   46     r = 17; | 
 |   47     s = 18; | 
 |   48     t = 19; | 
 |   49     u = 20; | 
 |   50     v = 21; | 
 |   51     w = 22; | 
 |   52     x = 23; | 
 |   53     y = 24; | 
 |   54     z = 25; | 
 |   55     aa = 0; | 
 |   56     bb = 1; | 
 |   57     cc = 2; | 
 |   58     dd = 3; | 
 |   59     ee = 4; | 
 |   60     ff = 5; | 
 |   61     gg = 6; | 
 |   62     hh = 7; | 
 |   63     ii = 8; | 
 |   64     jj = 9; | 
 |   65     kk = 10; | 
 |   66     ll = 11; | 
 |   67     mm = 12; | 
 |   68     nn = 13; | 
 |   69     oo = 14; | 
 |   70     pp = 15; | 
 |   71     qq = 16; | 
 |   72     rr = 17; | 
 |   73     ss = 18; | 
 |   74     tt = 19; | 
 |   75     uu = 20; | 
 |   76     vv = 21; | 
 |   77     ww = 22; | 
 |   78     xx = 23; | 
 |   79     yy = 24; | 
 |   80     zz = 25; | 
 |   81     aaa = 0; | 
 |   82     bbb = 1; | 
 |   83     ccc = 2; | 
 |   84     ddd = 3; | 
 |   85     eee = 4; | 
 |   86     fff = 5; | 
 |   87     ggg = 6; | 
 |   88     hhh = 7; | 
 |   89     iii = 8; | 
 |   90     jjj = 9; | 
 |   91     kkk = 10; | 
 |   92     lll = 11; | 
 |   93     mmm = 12; | 
 |   94     nnn = 13; | 
 |   95     ooo = 14; | 
 |   96     ppp = 15; | 
 |   97     qqq = 16; | 
 |   98     rrr = 17; | 
 |   99     sss = 18; | 
 |  100     ttt = 19; | 
 |  101     uuu = 20; | 
 |  102     vvv = 21; | 
 |  103     www = 22; | 
 |  104     xxx = 23; | 
 |  105     yyy = 24; | 
 |  106     zzz = 25; | 
 |  107     aaaa = 0; | 
 |  108     bbbb = 1; | 
 |  109     cccc = 2; | 
 |  110     dddd = 3; | 
 |  111     eeee = 4; | 
 |  112     ffff = 5; | 
 |  113     gggg = 6; | 
 |  114     hhhh = 7; | 
 |  115     iiii = 8; | 
 |  116     jjjj = 9; | 
 |  117     kkkk = 10; | 
 |  118     llll = 11; | 
 |  119     mmmm = 12; | 
 |  120     nnnn = 13; | 
 |  121     oooo = 14; | 
 |  122     pppp = 15; | 
 |  123     qqqq = 16; | 
 |  124     rrrr = 17; | 
 |  125     ssss = 18; | 
 |  126     tttt = 19; | 
 |  127     uuuu = 20; | 
 |  128     vvvv = 21; | 
 |  129     wwww = 22; | 
 |  130     xxxx = 23; | 
 |  131     yyyy = 24; | 
 |  132     zzzz = 25; | 
 |  133     return 1; | 
 |  134 })(); | 
 |  135  | 
 |  136 shouldBe(result.toString(), "1"); | 
| OLD | NEW |