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: --allow-natives-syntax --turbo-filter=f 6 // Flags: --noanalyze-environment-liveness 7 8 function 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); 16 assertThrows(f, ReferenceError); 17