|
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 |