js/src/tests/js1_8_5/extensions/findReferences-04.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/js1_8_5/extensions/findReferences-04.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +// Any copyright is dedicated to the Public Domain.
     1.5 +// http://creativecommons.org/licenses/publicdomain/
     1.6 +// Contributor: Jim Blandy
     1.7 +
     1.8 +if (typeof findReferences == "function") {
     1.9 +
    1.10 +    var global = newGlobal();
    1.11 +    var o = ({});
    1.12 +    global.o = o;
    1.13 +
    1.14 +    // Don't trip a cross-compartment reference assertion.
    1.15 +    findReferences(o);
    1.16 +
    1.17 +    reportCompare(true, true);
    1.18 +
    1.19 +} else {
    1.20 +    reportCompare(true, true, "test skipped: findReferences is not a function");
    1.21 +}

mercurial