1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_8_5/regress/regress-563210.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +// |reftest| skip-if(Android) 1.5 +/* 1.6 + * Any copyright is dedicated to the Public Domain. 1.7 + * http://creativecommons.org/licenses/publicdomain/ 1.8 + * Contributors: Gary Kwong and Nicholas Nethercote 1.9 + */ 1.10 + 1.11 +if (typeof gczeal != 'undefined' && typeof gc != 'undefined') { 1.12 + try 1.13 + { 1.14 + try { 1.15 + __defineGetter__("x", gc) 1.16 + } catch (e) {} 1.17 + gczeal(1) 1.18 + print(x)(Array(-8)) 1.19 + } 1.20 + catch(ex) 1.21 + { 1.22 + } 1.23 +} 1.24 + 1.25 +// Reset gczeal. 1.26 +if (typeof gczeal !== 'undefined') 1.27 + gczeal(0) 1.28 + 1.29 +reportCompare("no assertion failure", "no assertion failure", "bug 563210"); 1.30 + 1.31 +