| Index: test/cctest/test-decls.cc
 | 
| ===================================================================
 | 
| --- test/cctest/test-decls.cc	(revision 9531)
 | 
| +++ test/cctest/test-decls.cc	(working copy)
 | 
| @@ -232,7 +232,7 @@
 | 
|      context.Check("const x; x",
 | 
|                    1,  // access
 | 
|                    2,  // declaration + initialization
 | 
| -                  2,  // declaration + initialization
 | 
| +                  1,  // declaration
 | 
|                    EXPECT_RESULT, Undefined());
 | 
|    }
 | 
|  
 | 
| @@ -240,7 +240,7 @@
 | 
|      context.Check("const x = 0; x",
 | 
|                    1,  // access
 | 
|                    2,  // declaration + initialization
 | 
| -                  2,  // declaration + initialization
 | 
| +                  1,  // declaration
 | 
|                    EXPECT_RESULT, Undefined());  // SB 0 - BUG 1213579
 | 
|    }
 | 
|  }
 | 
| @@ -285,18 +285,18 @@
 | 
|  
 | 
|    { PresentPropertyContext context;
 | 
|      context.Check("const x; x",
 | 
| -                  0,
 | 
| -                  0,
 | 
| +                  1,  // access
 | 
| +                  1,  // initialization
 | 
|                    1,  // (re-)declaration
 | 
| -                  EXPECT_EXCEPTION);  // x has already been declared!
 | 
| +                  EXPECT_RESULT, Undefined());
 | 
|    }
 | 
|  
 | 
|    { PresentPropertyContext context;
 | 
|      context.Check("const x = 0; x",
 | 
| -                  0,
 | 
| -                  0,
 | 
| +                  1,  // access
 | 
| +                  1,  // initialization
 | 
|                    1,  // (re-)declaration
 | 
| -                  EXPECT_EXCEPTION);  // x has already been declared!
 | 
| +                  EXPECT_RESULT, Number::New(0));
 | 
|    }
 | 
|  }
 | 
|  
 | 
| @@ -341,7 +341,7 @@
 | 
|      context.Check("const x; x",
 | 
|                    1,  // access
 | 
|                    2,  // declaration + initialization
 | 
| -                  2,  // declaration + initializetion
 | 
| +                  1,  // declaration
 | 
|                    EXPECT_RESULT, Undefined());
 | 
|    }
 | 
|  
 | 
| @@ -349,7 +349,7 @@
 | 
|      context.Check("const x = 0; x",
 | 
|                    1,  // access
 | 
|                    2,  // declaration + initialization
 | 
| -                  2,  // declaration + initialization
 | 
| +                  1,  // declaration
 | 
|                    EXPECT_RESULT, Undefined());  // SB 0 - BUG 1213579
 | 
|    }
 | 
|  
 | 
| @@ -429,18 +429,20 @@
 | 
|  
 | 
|    { AppearingPropertyContext context;
 | 
|      context.Check("const x; x",
 | 
| -                  0,
 | 
| +                  1,  // access
 | 
| +                  2,  // declaration + initialization
 | 
|                    1,  // declaration
 | 
| -                  2,  // declaration + initialization
 | 
| -                  EXPECT_EXCEPTION);  // x has already been declared!
 | 
| +                  EXPECT_RESULT, Undefined());
 | 
|    }
 | 
|  
 | 
|    { AppearingPropertyContext context;
 | 
|      context.Check("const x = 0; x",
 | 
| -                  0,
 | 
| +                  1,  // access
 | 
| +                  2,  // declaration + initialization
 | 
|                    1,  // declaration
 | 
| -                  2,  // declaration + initialization
 | 
| -                  EXPECT_EXCEPTION);  //  x has already been declared!
 | 
| +                  EXPECT_RESULT, Undefined());
 | 
| +                  // Result is undefined because declaration succeeded but
 | 
| +                  // initialization to 0 failed (due to context behavior).
 | 
|    }
 | 
|  }
 | 
|  
 | 
| @@ -496,9 +498,9 @@
 | 
|    { ReappearingPropertyContext context;
 | 
|      context.Check("const x; var x = 0",
 | 
|                    0,
 | 
| -                  2,  // var declaration + const initialization
 | 
| -                  4,  // 2 x declaration + 2 x initialization
 | 
| -                  EXPECT_EXCEPTION);  // x has already been declared!
 | 
| +                  3,  // const declaration+initialization, var initialization
 | 
| +                  3,  // 2 x declaration + var initialization
 | 
| +                  EXPECT_RESULT, Undefined());
 | 
|    }
 | 
|  }
 | 
|  
 | 
| 
 |