blob: bcfc702df3242265e21f78df62d212814a06c83d [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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: --allow-natives-syntax --turbo-filter=f
6// Flags: --noanalyze-environment-liveness
7
8function f() {
9 var x = 0;
10 for (var y = 0; y < 0; ++y) {
11 x = (x + y) | 0;
12 }
13 return unbound;
14}
15%OptimizeFunctionOnNextCall(f);
16assertThrows(f, ReferenceError);