consttypeError=newTypeError("Failed to execute 'mark' on 'Performance': 1 argument required, but only 0 present.");
throwtypeError;
}else{
if(typeofStringResult!=="y"){
const_String=String;
StringResult=String(StringResult);
}
detail=undefined;
startTime=undefined;
if(null!=arg1){
({startTime,detail}=arg1);
}
if(undefined!==startTime){
letNumberResult=startTime;
if(typeofstartTime!=="Object"){
const_Number=Number;
NumberResult=Number(startTime);
}
if(NumberResult<0){
const_TypeError2=TypeError;
const_HermesInternal=HermesInternal;
consttypeError1=newTypeError("Failed to execute 'mark' on 'Performance': '"+StringResult+"' cannot have a negative start time.");
throwtypeError1;
}else{
if(NumberResult==NumberResult){
letcurrentTimeStamp=NumberResult;
}
const_TypeError=TypeError;
consttypeError2=newTypeError("Failed to execute 'mark' on 'Performance': Failed to read the 'startTime' property from 'PerformanceMarkOptions': The provided double value is non-finite.");
typeError=newTypeError("Failed to execute 'measure' on 'Performance': 1 argument required, but only 0 present.");
throwtypeError;
}else{
typeError=arg0;
if(typeofarg0!=="y"){
typeError=globalThis;
const_String3=String;
typeError=String(arg0);
}
typeError=arg1;
if(null!=arg1){
if("object"===typeofarg1){
if(undefined!==arg2){
typeError=globalThis;
const_TypeError3=TypeError;
typeError=new.target;
typeError=new.target;
typeError=newTypeError("Failed to execute 'measure' on 'Performance': If a non-empty PerformanceMeasureOptions object was passed, |end_mark| must not be passed.");
throwtypeError;
}else{
({start,end,duration,detail}=arg1);
if(undefined!==start){
if(undefined!==end){
if(undefined!==duration){
typeError=globalThis;
const_TypeError2=TypeError;
typeError=new.target;
typeError=new.target;
typeError=newTypeError("Failed to execute 'measure' on 'Performance': If a non-empty PerformanceMeasureOptions object was passed, it must not have all of its 'start', 'duration', and 'end' properties defined");
throwtypeError;
}
}
}
lettmp64;
if("undefined"!==typeofstart){
if("number"===tmp63){
tmp64=start;
}elseif("string"===tmp63){
if(typeofgetMarkTimeForMeasure!=="find"){
typeError=HermesBuiltin.throwTypeError();
}
tmp64=callback5(start);
if(null==tmp64){
const_HermesInternal6=HermesInternal;
lettmp73=importDefault(157);
tmp73=newtmp73("Failed to execute 'measure' on 'Performance': The mark '"+start+"' does not exist.","SyntaxError");
throwtmp73;
}
}else{
const_String=String;
constStringResult=String(start);
if(typeofgetMarkTimeForMeasure!=="find"){
typeError=HermesBuiltin.throwTypeError();
}
tmp64=callback5(StringResult);
if(null==tmp64){
typeError=importDefault;
typeError=dependencyMap;
const_HermesInternal8=HermesInternal;
typeError=importDefault(157);
typeError=new.target;
typeError=new.target;
typeError=newtypeError("Failed to execute 'measure' on 'Performance': The mark '"+StringResult+"' does not exist.","SyntaxError");
throwtypeError;
}
}
}
if("undefined"!==typeofend){
if("number"===tmp79){
lettmp80=end;
}elseif("string"===tmp79){
if(typeofgetMarkTimeForMeasure!=="find"){
typeError=HermesBuiltin.throwTypeError();
}
tmp80=callback5(end);
if(null==tmp80){
const_HermesInternal7=HermesInternal;
lettmp89=importDefault(157);
tmp89=newtmp89("Failed to execute 'measure' on 'Performance': The mark '"+end+"' does not exist.","SyntaxError");
throwtmp89;
}
}else{
const_String2=String;
constStringResult1=String(end);
if(typeofgetMarkTimeForMeasure!=="find"){
typeError=HermesBuiltin.throwTypeError();
}
tmp80=callback5(StringResult1);
if(null==tmp80){
typeError=importDefault;
typeError=dependencyMap;
const_HermesInternal9=HermesInternal;
typeError=importDefault(157);
typeError=new.target;
typeError=new.target;
typeError=newtypeError("Failed to execute 'measure' on 'Performance': The mark '"+StringResult1+"' does not exist.","SyntaxError");
throwtypeError;
}
}
}
lettmp96;
if("undefined"!==typeofduration){
if("number"===tmp95){
tmp96=duration;
}else{
const_Number=Number;
constNumberResult=Number(duration);
const_Number2=Number;
tmp96=NumberResult;
if(!Number.isFinite(NumberResult)){
const_TypeError=TypeError;
typeError=new.target;
typeError=newTypeError("Failed to execute 'measure' on 'Performance': Failed to read the 'duration' property from 'PerformanceMeasureOptions': The provided double value is non-finite.");