1/* 2* The contents of this file are subject to the Netscape Public 3* License Version 1.1 (the "License"); you may not use this file 4* except in compliance with the License. You may obtain a copy of 5* the License at http://www.mozilla.org/NPL/ 6* 7* Software distributed under the License is distributed on an "AS 8* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 9* implied. See the License for the specific language governing 10* rights and limitations under the License. 11* 12* The Original Code is mozilla.org code. 13* 14* The Initial Developer of the Original Code is Netscape 15* Communications Corporation. Portions created by Netscape are 16* Copyright (C) 1998 Netscape Communications Corporation. All 17* Rights Reserved. 18* 19* Contributor(s): pschwartau@netscape.com 20* Date: 21 Feb 2001 21* See http://bugzilla.mozilla.org/show_bug.cgi?id=69607 22* 23* SUMMARY: testing that we don't crash on trivial JavaScript 24* 25*/ 26//------------------------------------------------------------------------------------------------- 27var bug = 69607; 28var summary = "Testing that we don't crash on trivial JavaScript"; 29var var1; 30var var2; 31var var3; 32 33printBugNumber (bug); 34printStatus (summary); 35 36/* 37 * The crash this bug reported was caused by precisely these lines 38 * placed in top-level code (i.e. not wrapped inside a function) - 39*/ 40if(false) 41{ 42 var1 = 0; 43} 44else 45{ 46 var2 = 0; 47} 48 49if(false) 50{ 51 var3 = 0; 52} 53 54