mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 05:18:32 +02:00
17 lines
401 B
JavaScript
17 lines
401 B
JavaScript
// 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
|
|
|