Bug 1218560 - Fix heap tree view item rendering when using an allocation stack breakdown; r=jsantell

This commit is contained in:
Nick Fitzgerald
2015-10-26 14:58:03 -07:00
parent f85cbca228
commit b54f5700d8
7 changed files with 111 additions and 6 deletions

View File

@@ -818,3 +818,10 @@ exports.isGenerator = function (fn) {
exports.isPromise = function (p) {
return p && typeof p.then === "function";
};
/**
* Return true if `thing` is a SavedFrame, false otherwise.
*/
exports.isSavedFrame = function (thing) {
return Object.prototype.toString.call(thing) === "[object SavedFrame]";
};