michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 214761; michael@0: var summary = 'Crash Regression from bug 208030'; michael@0: var actual = 'No Crash'; michael@0: var expect = 'No Crash'; michael@0: michael@0: printBugNumber(BUGNUMBER); michael@0: printStatus (summary); michael@0: michael@0: options('strict'); michael@0: michael@0: var code = "var bar1=new Array();\n" + michael@0: "bar1[0]='foo';\n" + michael@0: "var bar2=document.all&&navigator.userAgent.indexOf('Opera')==-1;\n" + michael@0: "var bar3=document.getElementById&&!document.all;\n" + michael@0: "var bar4=document.layers;\n" + michael@0: "function foo1(){\n" + michael@0: "return false;}\n" + michael@0: "function foo2(){\n" + michael@0: "return false;}\n" + michael@0: "function foo3(){\n" + michael@0: "return false;}\n" + michael@0: "function foo4(){\n" + michael@0: "return false;}\n" + michael@0: "function foo5(){\n" + michael@0: "return false;}\n" + michael@0: "function foo6(){\n" + michael@0: "return false;}\n" + michael@0: "function foo7(){\n" + michael@0: "return false;}"; michael@0: michael@0: try michael@0: { michael@0: eval(code); michael@0: } michael@0: catch(e) michael@0: { michael@0: } michael@0: michael@0: reportCompare(expect, actual, summary);