js/src/tests/test262/ch07/7.9/S7.9_A5.5_T5.js

branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
equal deleted inserted replaced
-1:000000000000 0:dc49ae8f3d20
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * Check Function Expression for automatic semicolon insertion
6 *
7 * @path ch07/7.9/S7.9_A5.5_T5.js
8 * @description Insert some LineTerminators into rerutn expression;
9 */
10
11 //CHECK#1
12 var x =
13 1 + (function f
14 (t){
15 return {
16 a:
17 function(){
18 return t + 1
19 }
20 }
21 }
22 )
23 (2 + 3).
24 a
25 ()
26
27 if (x !== 7) {
28 $ERROR('#1: Check Function Expression for automatic semicolon insertion');
29 }
30

mercurial