Chrome timeline import (anonymous)

This commit is contained in:
Jamie Wong 2017-12-31 01:27:56 -05:00
parent c240ac8694
commit 65ec2da913

View File

@ -94,7 +94,7 @@ export function importFromChrome(events: TimelineEvent[]) {
for (let node = nodeById.get(nodeId); node; node = node.parent) {
stack.push({
key: node.id,
name: node.callFrame.functionName,
name: node.callFrame.functionName || "(anonymous)",
file: node.callFrame.url,
line: node.callFrame.lineNumber,
col: node.callFrame.columnNumber