// Copyright 2018 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.const{session,contextGroup,Protocol}=InspectorTest.start('Evaluate at first line of module should not crash');constutilsModule=`export function identity(value) { return value;}`;constmainModule=`import {identity} from 'utils';console.log(identity(0));`;(asyncfunctiontest(){Protocol.Debugger.enable();Protocol.Debugger.setBreakpointByUrl({lineNumber:1,url:'main'});contextGroup.addModule(utilsModule,'utils');contextGroup.addModule(mainModule,'main');const{params:{callFrames}}=awaitProtocol.Debugger.oncePaused();constresult=awaitProtocol.Debugger.evaluateOnCallFrame({callFrameId:callFrames[0].callFrameId,expression:'identity(0)'});InspectorTest.logMessage(result);InspectorTest.completeTest();})()