| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Flags: --harmony-sloppy --harmony-sloppy-function --harmony-sloppy-let | |
| 6 // Flags: --no-harmony-restrictive-declarations | 5 // Flags: --no-harmony-restrictive-declarations |
| 7 | 6 |
| 8 // At some point, this code led to DCHECK errors in debug mode | 7 // At some point, this code led to DCHECK errors in debug mode |
| 9 | 8 |
| 10 for (; false;) function foo() {}; | 9 for (; false;) function foo() {}; |
| 11 | 10 |
| 12 for (x in []) function foo() {}; | 11 for (x in []) function foo() {}; |
| OLD | NEW |