// Access and store the stacktrace property before doing ANYTHING
// else to it because Opera is not very good at providing it
// reliably in other circumstances.
conststacktrace=ex.stacktrace||ex.stack||'';
constpopSize=getPopSize(ex);
try{
returnstackParser(stacktrace,popSize);
}catch(e){
// no-empty
}
return[];
}
// Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/sentry/lang/javascript/errormapping.py#L83-L108