Debian Codegraph @

js/src/tests/test262/language/statements/function/line-terminator.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: Any separators are admitted between declaration chunks
6 es5id: 13_A16
7 description: Inserting separators between declaration chunks
8 ---*/
9
10 function
11 x
12 (
13 )
14 {
15 }
16 ;
17
18 x();
19
20 function y ( ) {};
21
22 y();
23
24 function
25
26 z
27
28 (
29
30 )
31
32 {
33
34 }
35
36 ;
37
38 z();
39
40 // The following function expression is expressed with literal unicode
41 // characters so that parsers may benefit from this test. The included code
42 // points are as follows:
43 //
44 // "function\u0009\u2029w(\u000C)\u00A0{\u000D}"
45
46 function 
w( ) { }
47
48 w();
49
50 reportCompare(0, 0);