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 3 // found in the LICENSE file. 4 5 // Flags: --no-harmony-restrictive-declarations 6 7 // At some point, this code led to DCHECK errors in debug mode 8 9 for (; false;) function foo() {}; 10 11 for (x in []) function foo() {}; 12