regress-464418.js (1184B)
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 = 464418; 9 var summary = 'Do not assert: fp->slots + fp->script->nfixed + ' + 10 'js_ReconstructStackDepth(cx, fp->script, fp->regs->pc) == fp->regs->sp'; 11 var actual = ''; 12 var expect = ''; 13 14 15 //----------------------------------------------------------------------------- 16 test(); 17 //----------------------------------------------------------------------------- 18 19 function test() 20 { 21 printBugNumber(BUGNUMBER); 22 printStatus (summary); 23 24 25 if (typeof gczeal == 'function') 26 { 27 gczeal(2); 28 } 29 30 for (let q = 0; q < 50; ++q) { 31 new Function("for (var i = 0; i < 5; ++i) { } ")(); 32 var w = "r".match(/r/); 33 new Function("for (var j = 0; j < 1; ++j) { } ")(); 34 } 35 36 37 if (typeof gczeal == 'function') 38 { 39 gczeal(0); 40 } 41 42 reportCompare(expect, actual, summary); 43 }