// Copyright 2021 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: --turboprop --allow-natives-syntaxletlast_value;letthrowFunc;functionfoo(count){letval=1;for(leti=16;i<count;++i){try{throwFunc();}catch(e){}val*=2;last_value=val;}}%PrepareFunctionForOptimization(foo);foo(20);foo(21);%OptimizeFunctionOnNextCall(foo);foo(47);assertEquals(2147483648,last_value);