Debian Codegraph @

js/src/tests/test262/language/asi/S7.9_A5.5_T5.js

raw
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 info: Check Function Expression for automatic semicolon insertion
6 es5id: 7.9_A5.5_T5
7 description: Insert some LineTerminators into rerutn expression;
8 ---*/
9
10 //CHECK#1
11 var x =
12 1 + (function f
13 (t){
14 return {
15 a:
16 function(){
17 return t + 1
18 }
19 }
20 }
21 )
22 (2 + 3).
23 a
24 ()
25
26 if (x !== 7) {
27 throw new Test262Error('#1: Check Function Expression for automatic semicolon insertion');
28 }
29
30 reportCompare(0, 0);