Bug 1106938 - When OS.File stores information on calls for AsyncShutdown, also store the Task.stack. r=yoric

This commit is contained in:
Mohamed Waleed 2015-03-10 05:26:00 -04:00
parent 58a19cdf9c
commit ac0e27511a

View File

@ -305,7 +305,9 @@ let Scheduler = this.Scheduler = {
let message = ["Meta_shutdown", [reset]];
Scheduler.latestReceived = [];
Scheduler.latestSent = [Date.now(), ...message];
Scheduler.latestSent = [Date.now(),
Task.Debugging.generateReadableStack(new Error().stack),
...message];
// Wait for result
let resources;
@ -981,7 +983,7 @@ if (!SharedAll.Constants.Win) {
/**
* Gets the number of bytes available on disk to the current user.
*
* @param {string} Platform-specific path to a directory on the disk to
* @param {string} Platform-specific path to a directory on the disk to
* query for free available bytes.
*
* @return {number} The number of bytes available for the current user.