diff --git a/closure/goog/debug/debug.js b/closure/goog/debug/debug.js
index <HASH>..<HASH> 100644
--- a/closure/goog/debug/debug.js
+++ b/closure/goog/debug/debug.js
@@ -399,7 +399,8 @@ goog.debug.getStacktraceHelper_ = function(fn, visited) {
   } else if (fn && visited.length < goog.debug.MAX_STACK_DEPTH) {
     sb.push(goog.debug.getFunctionName(fn) + '(');
     var args = fn.arguments;
-    for (var i = 0; i < args.length; i++) {
+    // Args may be null for some special functions such as host objects or eval.
+    for (var i = 0; args && i < args.length; i++) {
       if (i > 0) {
         sb.push(', ');
       }
At least in newish Chromes eval does not have an arguments properties, so the loop that is being patched here fails with an NPE.
This breaks i.e. the module manager were syntax errors in late loaded code can't be reported correctly.
-------------
Created by MOE: <URL>