for-in-with-gc-during-iterator-init.js (810B)
1 // Any copyright is dedicated to the Public Domain. 2 // http://creativecommons.org/licenses/publicdomain/ 3 4 //----------------------------------------------------------------------------- 5 var gTestfile = "for-in-with-gc-during-iterator-init.js"; 6 var BUGNUMBER = 1464472; 7 var summary = 8 "Properly trace NativeIterator when a GC occurs during its initialization"; 9 10 print(BUGNUMBER + ": " + summary); 11 12 /************** 13 * BEGIN TEST * 14 **************/ 15 16 gczeal(17, 1); 17 for (var i = 0; i < 100; ++i) 18 { 19 Object.prototype[1012] = "value"; 20 imports = {}; 21 for (dmod in imports) 22 continue; // gc occurs here converting 1012 to string 23 } 24 25 /******************************************************************************/ 26 27 if (typeof reportCompare === "function") 28 reportCompare(true, true); 29 30 print("Tests complete");