Unverified Commit d9d8ad53 authored by yann300's avatar yann300 Committed by GitHub

fix extracting parentScope (#1157)

parent f5b18166
......@@ -108,7 +108,8 @@ export class InternalCallTree {
}
parentScope (scopeId) {
return scopeId.replace(/(.\d|\d)$/, '')
if (scopeId.indexOf('.') === -1) return ''
return scopeId.replace(/(\.\d+)$/, '')
}
findScopeId (vmtraceIndex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment