1.1 --- a/test/script/basic/NASHORN-73.js Tue Aug 19 20:43:03 2014 +0100 1.2 +++ b/test/script/basic/NASHORN-73.js Wed Aug 20 10:25:28 2014 +0200 1.3 @@ -1,21 +1,21 @@ 1.4 /* 1.5 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 - * 1.8 + * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 * under the terms of the GNU General Public License version 2 only, as 1.11 * published by the Free Software Foundation. 1.12 - * 1.13 + * 1.14 * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 * version 2 for more details (a copy is included in the LICENSE file that 1.18 * accompanied this code). 1.19 - * 1.20 + * 1.21 * You should have received a copy of the GNU General Public License version 1.22 * 2 along with this work; if not, write to the Free Software Foundation, 1.23 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.24 - * 1.25 + * 1.26 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.27 * or visit www.oracle.com if you need additional information or have any 1.28 * questions. 1.29 @@ -50,8 +50,8 @@ 1.30 1.31 while (true) { 1.32 break; 1.33 - if (true) { 1.34 - var s; 1.35 + if (true) { 1.36 + var s; 1.37 } 1.38 } 1.39 1.40 @@ -61,20 +61,20 @@ 1.41 for ( ; ; ) { 1.42 break; 1.43 while (true) { 1.44 - do { 1.45 - var u; 1.46 - } while (true); 1.47 - } 1.48 + do { 1.49 + var u; 1.50 + } while (true); 1.51 + } 1.52 } 1.53 1.54 function terminal() { 1.55 print("r = "+r); 1.56 print("t = "+t); 1.57 for (;;) { 1.58 - var r; 1.59 - return; 1.60 - var t; 1.61 - print("THIS SHOULD NEVER BE PRINTED!"); 1.62 + var r; 1.63 + return; 1.64 + var t; 1.65 + print("THIS SHOULD NEVER BE PRINTED!"); 1.66 } 1.67 print("NEITHER SHOULD THIS"); 1.68 } 1.69 @@ -84,13 +84,13 @@ 1.70 function terminal2() { 1.71 print("q = "+q); 1.72 for (;;) { 1.73 - return; 1.74 - print("THIS SHOULD NEVER BE PRINTED!"); 1.75 + return; 1.76 + print("THIS SHOULD NEVER BE PRINTED!"); 1.77 } 1.78 print("NEITHER SHOULD THIS"); 1.79 } 1.80 1.81 -try { 1.82 +try { 1.83 terminal2(); 1.84 } catch (e) { 1.85 print(e); 1.86 @@ -108,13 +108,13 @@ 1.87 } catch (e) { 1.88 print(e); 1.89 } 1.90 - 1.91 + 1.92 1.93 function disp_a() { 1.94 var a = 20; 1.95 print("Value of 'a' inside the function " + a); 1.96 } 1.97 - 1.98 + 1.99 var a = 10; 1.100 1.101 disp_a();