michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: // Contributor: Jim Blandy michael@0: michael@0: if (typeof findReferences == "function") { michael@0: michael@0: var global = newGlobal(); michael@0: var o = ({}); michael@0: global.o = o; michael@0: michael@0: // Don't trip a cross-compartment reference assertion. michael@0: findReferences(o); michael@0: michael@0: reportCompare(true, true); michael@0: michael@0: } else { michael@0: reportCompare(true, true, "test skipped: findReferences is not a function"); michael@0: }