mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Fixed a bug that was causing failing unit tests using async.js to not properly report error conditions.
This commit is contained in:
parent
9a50d3a029
commit
e578772f0b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user