Fixed a bug that was causing failing unit tests using async.js to not properly report error conditions.

This commit is contained in:
Atul Varma 2008-06-09 18:40:30 -07:00
parent 9a50d3a029
commit e578772f0b

View File

@ -254,7 +254,7 @@ function trace(frame, str) {
// skip our frames
// FIXME: we should have a pref for this, for debugging async.js itself
while (frame.name.match(/^Async(Gen|)_/))
while (frame.name && frame.name.match(/^Async(Gen|)_/))
frame = frame.caller;
if (frame.caller)