From c05f0aca564eb8d402a281cf35865baaec8fa340 Mon Sep 17 00:00:00 2001 From: Anubhav Jain Date: Mon, 10 Aug 2015 19:55:52 -0700 Subject: [PATCH] Revert "Add checks to see if frame exists before trying to access the func property" This reverts commit bd6a0c00803bf6f8223ed06f3e3e97fa935cae6a. --- tools/utils/buildmessage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/utils/buildmessage.js b/tools/utils/buildmessage.js index cfb1b1c0f3..650cf8e2b8 100644 --- a/tools/utils/buildmessage.js +++ b/tools/utils/buildmessage.js @@ -92,7 +92,7 @@ _.extend(Job.prototype, { // If a nontrivial stack trace (more than just the file and line // we already complained about), print it. var where = ""; - if (frame && frame.file) { + if (frame.file) { where += frame.file; if (frame.line) { where += ":" + frame.line; @@ -102,11 +102,11 @@ _.extend(Job.prototype, { } } - if (frame && ! frame.func && ! where) + if (! frame.func && ! where) return; // that's a pretty lame stack frame line += " at "; - if (frame && frame.func) + if (frame.func) line += frame.func + " (" + where + ")\n"; else line += where + "\n";