// Copyright 2019 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: --allow-natives-syntaxfunctionuse(x){returnx;}%NeverOptimizeFunction(use);functionfoo(){letresult=undefined;(function(){consta={};for(_of[0]){constempty=[];(function(){result=42;for(_of[0]){for(_of[0]){use(empty);}}result=a;})();}})();returnresult;}%PrepareFunctionForOptimization(foo);foo();foo();%OptimizeFunctionOnNextCall(foo);foo();