// 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.let{session,contextGroup,Protocol}=InspectorTest.start('Checks if we can set a breakpoint on a one-line inline functions.');session.setupScriptMap();consttestFunction=` function test() { function func(a) {console.log(a);} func("hi"); } //# sourceURL=testFunction.js`;contextGroup.addScript(testFunction);(asyncfunctiontestSetBreakpoint(){awaitProtocol.Debugger.enable();awaitProtocol.Runtime.enable();InspectorTest.log('Setting breakpoint');const{result:{locations}}=awaitProtocol.Debugger.setBreakpointByUrl({lineNumber:1,url:'testFunction.js'});awaitsession.logBreakLocations(locations);Protocol.Runtime.evaluate({expression:'test()'});const{params:{callFrames}}=awaitProtocol.Debugger.oncePaused();InspectorTest.log('Paused on location:');session.logCallFrames(callFrames);InspectorTest.completeTest();})();