summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-652186-local.js
blob: 39f283432d09dc78a88c3fe805dee3f2d637a33c (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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: --always-opt

function f() {
  var x = 1;
  return eval("eval('var x = 2'); x;");
}
f();