1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_8_1/regress/regress-524743.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +// |reftest| skip-if((isDebugBuild&&!xulRuntime.shell)||Android) -- hang 1.5 +// Any copyright is dedicated to the Public Domain. 1.6 +// http://creativecommons.org/licenses/publicdomain/ 1.7 + 1.8 +if (typeof gczeal != 'undefined' && typeof gc != 'undefined') { 1.9 + try 1.10 + { 1.11 + gczeal(2); 1.12 + var obj = {}; 1.13 + for (var i = 0; i < 50; i++) { 1.14 + obj["_" + i] = 0; 1.15 + gc(); 1.16 + } 1.17 + } 1.18 + catch(ex) 1.19 + { 1.20 + } 1.21 + gczeal(0); 1.22 +} 1.23 +reportCompare("no assertion failure", "no assertion failure", "bug 524743");