summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-536751.js
blob: 0707e008eab734fd1b1f0e21f1446361573059ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Flags: --harmony-sloppy --harmony-sloppy-function --harmony-sloppy-let
// Flags: --no-harmony-restrictive-declarations

// At some point, this code led to DCHECK errors in debug mode

for (; false;) function foo() {};

for (x in []) function foo() {};