regress-452168.js (1296B)
1 // |reftest| skip-if(Android) 2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 //----------------------------------------------------------------------------- 8 var BUGNUMBER = 452168; 9 var summary = 'Do not crash with gczeal 2, JIT: @ avmplus::List or @ nanojit::LirBuffer::validate'; 10 var actual = 'No Crash'; 11 var expect = 'No Crash'; 12 13 //----------------------------------------------------------------------------- 14 test(); 15 //----------------------------------------------------------------------------- 16 17 function test() 18 { 19 printBugNumber(BUGNUMBER); 20 printStatus (summary); 21 22 if (typeof gczeal == 'undefined') 23 { 24 expect = actual = 'Test requires gczeal, skipped.'; 25 } 26 else 27 { 28 // Enumerate the global once before we turn on gczeal, so we're not 29 // trying to do all the enumerate hook object creation with a gc on 30 // every object, because that makes tests time out. 31 for (z in this); 32 gczeal(2); 33 34 var a, b; gczeal(2); (function() { for (var p in this) { } })(); 35 36 gczeal(0); 37 } 38 reportCompare(expect, actual, summary); 39 }