Bug 1034726 - AsyncShutdown payload now represents stacks as an array on a CLOSED TREE. r=yoric

This commit is contained in:
David Rajchenbach-Teller 2014-07-08 03:15:00 +02:00
Родитель 8168b217e1
Коммит 370246da5b
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -453,7 +453,7 @@ function Barrier(name) {
frames.push(frame.filename + ":" + frame.name + ":" + frame.lineNumber);
frame = frame.caller;
}
let stack = Task.Debugging.generateReadableStack(frames.join("\n"));
let stack = Task.Debugging.generateReadableStack(frames.join("\n")).split("\n");
let set = this._conditions.get(condition);
if (!set) {

Просмотреть файл

@ -293,8 +293,8 @@ add_task(function* test_state() {
Assert.equal(state.filename, filename);
Assert.equal(state.lineNumber, lineNumber + 1);
Assert.equal(state.name, BLOCKER_NAME);
Assert.ok(state.stack.contains("test_state"), "The stack contains the caller function's name");
Assert.ok(state.stack.contains(filename), "The stack contains the calling file's name");
Assert.ok(state.stack.some(x => x.contains("test_state")), "The stack contains the caller function's name");
Assert.ok(state.stack.some(x => x.contains(filename)), "The stack contains the calling file's name");
deferred.resolve();
yield promiseDone;