diff --git a/test/content/support.js b/test/content/support.js index ab1379cc9..490c62d56 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -202,39 +202,18 @@ function resetDB() { * Equivalent to JSON.stringify, except that object properties are stringified * in a sorted order. */ -function stableStringify(obj, level, label) { - if (!level) level = 0; - let indent = '\t'.repeat(level); - - if (label) label = JSON.stringify('' + label) + ': '; - else label = ''; - - if (typeof obj == 'function' || obj === undefined) return null; - - if (typeof obj != 'object' || obj === null) return indent + label + JSON.stringify(obj); - - if (Array.isArray(obj)) { - let str = indent + label + '['; - for (let i=0; i