From 65ec2da91389295704883232a0b11b262db754dd Mon Sep 17 00:00:00 2001 From: Jamie Wong Date: Sun, 31 Dec 2017 01:27:56 -0500 Subject: [PATCH] Chrome timeline import (anonymous) --- import/chrome.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import/chrome.ts b/import/chrome.ts index 9a960a1..b5a8140 100644 --- a/import/chrome.ts +++ b/import/chrome.ts @@ -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