summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch07/7.9/7.9.2/S7.9.2_A1_T6.js
blob: 8284f932a3b20b5a406cbd2107f5844cd883f100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * Check examples for automatic semicolon insertion from the Standart
 *
 * @path ch07/7.9/7.9.2/S7.9.2_A1_T6.js
 * @description if(a>b) \n else c=d is not a valid sentence in the ECMAScript grammar
 * @negative
 */

//CHECK#1
var a=1,b=2,c=3,d;
if(a>b)
else c=d